This is as useful as vue 2's prop types: very little.
Re:TypeScript please give us types
by gloryjulio on Friday July 07, 2023 @04:01PM
(#36637546)
U just need a library to enable this to reduce the boilerplate. I don't see how that's impossible
One needs to define their types as a const, like this one:
``` [{ type: Number, name: "field1" }, { type: String, name: "field2" }] as const ```
and then use Typescript magic to convert it into the fully fledged Typescript type.
Yes, it's annoying, but it's more flexible.