Const
Provide type infer for generic setup function, do nothing in runtime.
Support generic scene setup function
using scene = new Scene( generic(<T>(props: T) => ({ node: [], data: () => props })), //...);const data = await scene.show({ text: 'hello' });data; // expect: { text: string } Copy
using scene = new Scene( generic(<T>(props: T) => ({ node: [], data: () => props })), //...);const data = await scene.show({ text: 'hello' });data; // expect: { text: string }
Provide type infer for generic setup function, do nothing in runtime.