Diffdown is a real-time collaborative Markdown editor/previewer built on the AT Protocol diffdown.com
at main 16 lines 439 B view raw
1export class StyleModule { 2 constructor(spec: {[selector: string]: StyleSpec}, options?: { 3 finish?(sel: string): string 4 }) 5 getRules(): string 6 static mount( 7 root: Document | ShadowRoot | DocumentOrShadowRoot, 8 module: StyleModule | ReadonlyArray<StyleModule>, 9 options?: {nonce?: string} 10 ): void 11 static newName(): string 12} 13 14export type StyleSpec = { 15 [propOrSelector: string]: string | number | StyleSpec | null 16}