/** * This file is a test of JSX in Deno. * It is not working yet. * See https://dev.to/wongjiahau/how-to-use-custom-jsx-in-deno-f7l for some suggestions to fix this. */ export let i = 1; const React = { createElement(what : string) { return "hi"; } } declare namespace JSX { interface IntrinsicElements { foo: number; } } /* function x(count : number) { const result = []; for (let i = 0; i < count; i++) { result.push( as any); } return result; } */