TSX-static
tsx-static
is a minimal library for tsx pre-rendering or static site generation.
Usage
mod.ts
of tsx-static
re-export functions, classes and declarations from these files:
react.ts
: Providing classReact
,StyleSheet
,Style
, typeDocType
, as well asJSX
global namespace declaration (so that TypeScript can process tsx).react.ts
provides core functionality for tsx rendering, throughReact.stringify
, andReact.toString
.builder.ts
: Providing functionbuild
andemit
, and constloaders
.builder.ts
provides helper functions to build static sites and scripts, usingtsx-static
andDeno.emit
.dom.ts
: Providing declaration forconst window
from DOM API.This module is for type checking and auto-completing frontend code using Deno. The exported const
window
provides the same type declarations as inlib.dom.d.ts
.