UNPKG

postcss-d-ts

Version:

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

13 lines (12 loc) 524 B
import type { Part, Replace, SchemaDeclaredValues } from './ts-swiss.types'; import schema = require("./schema.json"); declare type SchemaOptions = typeof schema; declare type DefOptions = { [K in keyof SchemaOptions["properties"]]: SchemaDeclaredValues<SchemaOptions["properties"][K]>; }; export declare type Options = Part<Replace<DefOptions, { identifierPattern: string | RegExp; identifierCleanupPattern: string | RegExp; destination: false | Exclude<DefOptions["destination"], boolean>; }>>; export {};