Alternative to cast as Meta in default export?
#14317
Unanswered
bodadotsh
asked this question in
Documentation
Replies: 1 comment
-
|
So far I'm using the approach in #13747, and it seems to work okay for my specific situation. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
In TypeScript, the docs recommends to cast
as Metain default exportNotice how the random
fooproperty isn't warned?But, if we do this instead
We will get TS errors.
Thoughts?
Beta Was this translation helpful? Give feedback.
All reactions