functionalscript
Version:
FunctionalScript is a purely functional subset of JavaScript
14 lines (13 loc) • 498 B
TypeScript
import { type List } from '../types/list/module.f.ts';
type Tag = string;
type Element1 = readonly [Tag, ...Node[]];
type Element2 = readonly [Tag, Attributes, ...Node[]];
export type Element = Element1 | Element2;
type Attributes = {
readonly [k in string]: string;
};
export type Node = Element | string;
export declare const element: (e: Element) => List<string>;
export declare const html: (_: Element) => List<string>;
export declare const htmlToString: (_: Element) => string;
export {};