Get ts type that accepts type arguments
I have a type that looks like this:
I would prefer to instead define a Type and infer the ts type.
So ultimately I'd want to do this:
But of course
I tried playing around with scopes, tried doing
I would prefer to instead define a Type and infer the ts type.
So ultimately I'd want to do this:
But of course
PluginInstance doesn't take any type arguments. Is it possible to define generics on my schema and have the inferred type accept those type arguments?I tried playing around with scopes, tried doing
const pluginInstanceSchema = type("<Input, TInput, Diff>", { ..., but didn't really get anywhere.