Skip to content

Commit

Permalink
Technically...
Browse files Browse the repository at this point in the history
  • Loading branch information
thesoftwarephilosopher committed Aug 30, 2024
1 parent 9ae4155 commit f782504
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions site/unity/client.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,20 @@ import { setupTheme } from '../theme.js';
import { rules, tokenProvider } from '../token-provider.js';
import { babelPluginVanillaJSX } from './vanillajsx.js';

monaco.languages.typescript.javascriptDefaults.addExtraLib(`
declare namespace JSX {
const jsx: unique symbol;
type Element = {
[jsx]: string | any,
children: any[],
[attr: string]: any,
};
}
`.trim(), `ts:filename/jsx.d.ts`);

setupTheme(rules);

setTimeout(() => {
Expand Down

0 comments on commit f782504

Please sign in to comment.