UNPKG

postcss-d-ts

Version:

PostCSS plugin to generate `.d.ts` of all used CSS classes and ids in imported stylesheets

45 lines (44 loc) 1.31 kB
{ "$schema": "http://json-schema.org/draft-07/schema", "$id": "https://askirmas.github.io/postcss-d-ts/postconfig.schema.json", "properties": { "plugins": { "type": ["array", "object"], "properties": { "postcss-d-ts": { "$ref": "./schema.json" }, "postcss-d-ts/dist/7": { "$ref": "./schema.json" } }, "--- items ---": { "type": ["array", "string"], "examples": [ "postcss-d-ts", ["postcss-d-ts", {}], "postcss-d-ts/dist/7", ["postcss-d-ts/dist/7", {}] ], "if": { "items": [{ "$ref": "#/definitions/versions" }] }, "then": { "items": [ { "$ref": "#/definitions/versions" }, { "$ref": "./schema.json" } ], "maxItems": 2 } } } }, "definitions": { "versions": { "enum": [ "postcss-d-ts", "postcss-d-ts/dist/7" ] } } }