Add support for intellisense imports for the vscode extension
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
@ -9,8 +9,6 @@ declare namespace JSX {
|
||||
}
|
||||
}
|
||||
|
||||
export { Fragment };
|
||||
|
||||
export type Element = {
|
||||
component: Component | string | typeof Fragment;
|
||||
props: any;
|
||||
@ -34,6 +32,10 @@ export function h(
|
||||
};
|
||||
}
|
||||
|
||||
const createElement = h;
|
||||
|
||||
export { Fragment, createElement };
|
||||
|
||||
export async function renderSSR(element: Element | string): Promise<string> {
|
||||
if (typeof element === "string") return element;
|
||||
else if (typeof element.component === "string")
|
||||
|
Reference in New Issue
Block a user