You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

25 lines
827 B

4 years ago
  1. import { LazyResult } from 'postcss';
  2. export interface StyleCompileOptions {
  3. source: string;
  4. filename: string;
  5. id: string;
  6. map?: any;
  7. scoped?: boolean;
  8. trim?: boolean;
  9. preprocessLang?: string;
  10. preprocessOptions?: any;
  11. postcssOptions?: any;
  12. postcssPlugins?: any[];
  13. }
  14. export interface AsyncStyleCompileOptions extends StyleCompileOptions {
  15. isAsync?: boolean;
  16. }
  17. export interface StyleCompileResults {
  18. code: string;
  19. map: any | void;
  20. rawResult: LazyResult | void;
  21. errors: string[];
  22. }
  23. export declare function compileStyle(options: StyleCompileOptions): StyleCompileResults;
  24. export declare function compileStyleAsync(options: StyleCompileOptions): Promise<StyleCompileResults>;
  25. export declare function doCompileStyle(options: AsyncStyleCompileOptions): StyleCompileResults;