- Move CODEGEN_PROMPT to codegen.md, loaded via raw-md bundler plugin - Add JSX_REFERENCE as jsx-reference.md with full prop/tag/example docs - Copy JSX Reference button (book icon) in Code panel header - Multi-root JSX: try parsing as-is, wrap in fragment on failure - Component and Instance tag aliases in JSX renderer - renderJSX returns RenderResult[] to support fragments - raw-md plugin for both tsdown and Vite Co-authored-by: sld0Ant <sld0Ant@users.noreply.github.com>
25 lines
485 B
TypeScript
25 lines
485 B
TypeScript
interface FontData {
|
|
family: string
|
|
fullName: string
|
|
postscriptName: string
|
|
style: string
|
|
blob(): Promise<Blob>
|
|
}
|
|
|
|
interface Window {
|
|
queryLocalFonts?(): Promise<FontData[]>
|
|
}
|
|
|
|
interface Uint8ArrayConstructor {
|
|
fromBase64(base64: string, options?: { alphabet?: 'base64' | 'base64url' }): Uint8Array
|
|
}
|
|
|
|
interface Uint8Array {
|
|
toBase64(options?: { alphabet?: 'base64' | 'base64url' }): string
|
|
}
|
|
|
|
declare module '*.md' {
|
|
const content: string
|
|
export default content
|
|
}
|