WIP! A BB-style forum, on the ATmosphere!
We're still working... we'll be back soon when we have something to show off!
node
typescript
hono
htmx
atproto
1/**
2 * Minimal type declaration for css-tree v2.
3 * css-tree v2.x does not ship bundled TypeScript types.
4 * These declarations cover only the subset of the API used by the sanitizer.
5 */
6declare module "css-tree" {
7 interface CssNode {
8 type: string;
9 [key: string]: unknown;
10 }
11
12 interface List {
13 remove(item: ListItem): void;
14 }
15
16 interface ListItem {
17 data: CssNode;
18 }
19
20 function parse(
21 css: string,
22 options?: {
23 parseValue?: boolean;
24 onParseError?: (error: SyntaxError) => void;
25 }
26 ): CssNode;
27
28 function walk(
29 ast: CssNode,
30 visitor:
31 | ((node: CssNode, item: ListItem | null, list: List | null) => void)
32 | {
33 enter?: (
34 node: CssNode,
35 item: ListItem | null,
36 list: List | null
37 ) => void;
38 leave?: (
39 node: CssNode,
40 item: ListItem | null,
41 list: List | null
42 ) => void;
43 }
44 ): void;
45
46 function generate(ast: CssNode): string;
47}