Claude Sonnet 5.5
v0.10.0: glass, tilt, named-colour alpha fix; playground with HTML tab, examples, warnings and CSS view; live effects on the home page
0c4637f Download src/types/dssl.d.ts from EHS-Studio/dssl: direct link, hf CLI and curl.
- Browser
- Download file 1.37 kB
-
https://huggingface.co/EHS-Studio/dssl/resolve/main/src/types/dssl.d.ts
- Command line
-
hf download hf://EHS-Studio/dssl/src/types/dssl.d.ts
-
curl -L -o dssl.d.ts https://huggingface.co/EHS-Studio/dssl/resolve/main/src/types/dssl.d.ts
1.37 kB
| /* The engine puts itself on window as DSSL. Typed once, here, so the site and its | |
| * tests agree on what exists. Anything the site does not call is left loose. */ | |
| interface DsslError { file?: string; line?: number; message: string; hint?: string } | |
| interface DsslApplyResult { | |
| ok: boolean; | |
| errors: DsslError[]; | |
| warnings?: DsslError[]; | |
| stats: { rules: number; shadowRules: number; motions: number; tokens: number; mediaQueries: number }; | |
| } | |
| interface Window { | |
| DSSL?: { | |
| version: string; | |
| load: (urls: string[], opts?: { reset?: boolean }) => Promise<unknown>; | |
| apply: (src: string, opts?: { name?: string; scope?: string | Element; replace?: boolean }) => DsslApplyResult; | |
| compile?: (src: string) => DsslApplyResult; | |
| signal: (name: string, value: string | null) => void; | |
| getSignal?: (name: string) => string | undefined; | |
| replay: (selector?: string) => void; | |
| refresh: () => void; | |
| freeze: () => unknown; | |
| unfreeze: () => unknown; | |
| explain: (el: Element, opts?: { quiet?: boolean }) => unknown; | |
| errors: () => DsslError[]; | |
| toCSS?: (src: string, opts?: { banner?: boolean; file?: string }) => { css: string; report: unknown }; | |
| // eslint-disable-next-line @typescript-eslint/no-explicit-any | |
| __debug?: any; | |
| // eslint-disable-next-line @typescript-eslint/no-explicit-any | |
| [extra: string]: any; | |
| }; | |
| } | |