million icon indicating copy to clipboard operation
million copied to clipboard

Preact TypeScript Support

Open GuiBibeau opened this issue 1 year ago • 2 comments

Description:

Extend support for Preact framework with TypeScript in the playground. The application should allow users to write and test Preact code using TypeScript.

Acceptance Criteria:

  • [ ] User can select Preact (TypeScript) from the framework switcher.
  • [ ] The playground supports Preact syntax and features when used with TypeScript.

GuiBibeau avatar May 28 '23 20:05 GuiBibeau

There is an issue on Preact's side, every single function overload, even if they take a generic of prop types, always return VNode<any> unlike React. I made an issue about it here:

https://github.com/preactjs/preact/issues/4040

For now, TypeScript Preact support will be halted

destroyer22719 avatar Jun 08 '23 00:06 destroyer22719

I figured a way to still get TypeScript support with VNode<any> being set for all function overloads. This has been partially addressed with PR #385

destroyer22719 avatar Jun 08 '23 23:06 destroyer22719

Sorry for the delay in fixing this, however in 10.16.0 this should be addressed

JoviDeCroock avatar Jul 19 '23 11:07 JoviDeCroock

Sorry for the delay in fixing this, however in 10.16.0 this should be addressed

That'll be very helpful! Thank you very much.

tobySolutions avatar Jul 19 '23 11:07 tobySolutions

@tobySolutions i think the issue has been resolved ,is plz close it

RANJEETJ06 avatar Sep 23 '23 18:09 RANJEETJ06

Awesome! Thanks @RANJEETJ06!

tobySolutions avatar Sep 23 '23 22:09 tobySolutions

Thank you @JoviDeCroock!

tobySolutions avatar Sep 23 '23 22:09 tobySolutions