You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently we need to write the attributes type manually like this:
// This is the only way to set the attributes type of a custom element// @TODO @xcatliu We are working on a tool to build the type definition automatically //// https://github.com/Microsoft/TypeScript/issues/4648declare global {namespaceJSX{interfaceIntrinsicElements{'hello-omi': Omi.CustomElementBaseAttributes&{msg: string;'prop-from-parent': string;onAbc: (e: Event)=>void;};}}}
We need a tool to build the type definition automatically
The text was updated successfully, but these errors were encountered:
Currently we need to write the attributes type manually like this:
We need a tool to build the type definition automatically
The text was updated successfully, but these errors were encountered: