| export class StyleModule { | ||
| constructor(spec: {[selector: string]: StyleSpec}, options?: { | ||
| finish?(sel: string): string | ||
| }) | ||
| getRules(): string | ||
| static mount( | ||
| root: Document | ShadowRoot | DocumentOrShadowRoot, | ||
| module: StyleModule | ReadonlyArray<StyleModule>, | ||
| options?: {nonce?: string} | ||
| ): void | ||
| static newName(): string | ||
| } | ||
| export type StyleSpec = { | ||
| [propOrSelector: string]: string | number | StyleSpec | null | ||
| } |
+2
-2
| { | ||
| "name": "style-mod", | ||
| "version": "4.1.2", | ||
| "version": "4.1.3", | ||
| "description": "A minimal CSS module shim", | ||
@@ -18,3 +18,3 @@ "main": "dist/style-mod.cjs", | ||
| "test": "npm run build && mocha test/test-*.js", | ||
| "build": "mkdir -p dist; buble --no modules src/style-mod.js | sed -e 's/export var StyleModule/var StyleModule = exports.StyleModule/' > dist/style-mod.cjs", | ||
| "build": "mkdir -p dist; buble --no modules src/style-mod.js | sed -e 's/export var StyleModule/var StyleModule = exports.StyleModule/' > dist/style-mod.cjs; cp src/style-mod.d.ts dist/style-mod.d.cts", | ||
| "prepare": "npm run build && npm run build-readme", | ||
@@ -21,0 +21,0 @@ "build-readme": "builddocs --name style-mod --main src/README.md --format markdown src/*.js > README.md" |
24088
2.05%9
12.5%