index.d.ts 1.0 KB

12345678910111213141516
  1. import type { PluginCreator } from 'postcss';
  2. import type { ImportOptions, ExportOptions } from './lib/options';
  3. export interface PluginOptions {
  4. /** Do not emit warnings about "importFrom" and "exportTo" deprecations */
  5. disableDeprecationNotice?: boolean;
  6. /** Determines whether Custom Properties and properties using custom properties should be preserved in their original form. */
  7. preserve?: boolean;
  8. /** Specifies sources where Custom Properties can be imported from, which might be CSS, JS, and JSON files, functions, and directly passed objects. */
  9. importFrom?: ImportOptions | Array<ImportOptions>;
  10. /** Specifies destinations where Custom Properties can be exported to, which might be CSS, JS, and JSON files, functions, and directly passed objects. */
  11. exportTo?: ExportOptions | Array<ExportOptions>;
  12. /** Specifies if `importFrom` properties or `:root` properties have priority. */
  13. overrideImportFromWithRoot?: boolean;
  14. }
  15. declare const creator: PluginCreator<PluginOptions>;
  16. export default creator;