Const
Provide type infer for generic component, do nothing in runtime.
Support generic component
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 component, do nothing in runtime.