A solution to Property of exported anonymous class type may not be private or protected.
#61249
Labels
Duplicate
An existing issue was already created
π 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: