Is it possible to implement full-fledged inheritance ? #1740
-
Sorry for my english. So my questions are:
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Your English is excellent @weedb, no problem.
https://codesandbox.io/s/thirsty-surf-n7tde?file=/src/App.tsx As you can see in the above CodeSandbox, I redefined the prop and assigned it a new type. TypeScript doesn't like it, but it works fine at runtime.
Thanks! |
Beta Was this translation helpful? Give feedback.
Your English is excellent @weedb, no problem.
https://codesandbox.io/s/thirsty-surf-n7tde?file=/src/App.tsx
As you can see in the above CodeSandbox, I redefined the prop and assigned it a new type. TypeScript doesn't like it, but it works fine at runtime.
Thanks!