Open leonardssh opened 2 years ago
As it is said it's not exported, it's not a public API yet but if you want to use it you can type your plugin like this:
type Unpacked<T> = T extends undefined ? never : T extends (infer U)[] ? U : T;
type Plugin = Unpacked<Options['plugins']>
const somePlugin = (): Plugin => {
return {}
}
I wrote a plugin and saw that types are not exported, only declared locally.
If I try to use it directly, it is not found.
Upvote & Fund