Add support for intellisense imports for the vscode extension
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Fabian Stamm
2021-01-15 02:32:51 +01:00
parent 6bc090e51b
commit 9dfb8d65d3
7 changed files with 134 additions and 13 deletions

View File

@ -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")