You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
test.ts:1:17 - error TS4094: Property 'foo' of exported anonymous class type may not be private or protected.
1 export function foo() {
~~~
Found 1 error in test.ts:1
π Expected behavior
In the .d.ts file, just add a temporary class to remove this bug...
Additional information about the issue
This bug was signaled ~6 years ago, but was closed: #30355
π Search Terms
Property of exported anonymous class type may not be private or protected
π Version & Regression Information
β― Playground Link
No response
π» Code
π Actual behavior
π Expected behavior
In the .d.ts file, just add a temporary class to remove this bug...
Additional information about the issue
This bug was signaled ~6 years ago, but was closed: #30355
The following works:
It produces this .d.ts :
So for our case, just create a temporary class outside of
foo()
and use it...The text was updated successfully, but these errors were encountered: