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
Would it be possible to introduce TypeScript generic type parameters support? TS recognizes @template tags from JSDoc annotations for type parameters, if that would be of any help.
From what I've tested, sveld would currently generate prop and slot typings with the type parameter(s) included, but because the exported class and interface do not have a type parameter list, it is invalid.
The text was updated successfully, but these errors were encountered:
Since sveld currently doesn't support generics, the typings for the data prop and slot prop would be any[] and any respectively, which is not ideal in a TypeScript environment (the slot prop is currently generated as any[] due to them sharing the same name, but that's a separate issue).
For events, generics can be used when the dispatched detail object is based on another generic-typed prop(s):
Would it be possible to introduce TypeScript generic type parameters support? TS recognizes
@template
tags from JSDoc annotations for type parameters, if that would be of any help.From what I've tested, sveld would currently generate prop and slot typings with the type parameter(s) included, but because the exported class and interface do not have a type parameter list, it is invalid.
The text was updated successfully, but these errors were encountered: