parse.d.ts 544 B

1234567891011121314151617181920
  1. import LazyResult from './lazy-result';
  2. import * as postcss from './postcss';
  3. import Result from './result';
  4. import Root from './root';
  5. /**
  6. * Parses source CSS.
  7. * @param css The CSS to parse.
  8. * @param options
  9. * @returns {} A new Root node, which contains the source CSS nodes.
  10. */
  11. declare function parse(css: string | {
  12. toString(): string;
  13. } | LazyResult | Result, options?: {
  14. from?: string;
  15. map?: postcss.SourceMapOptions;
  16. }): Root;
  17. declare module parse {
  18. var parse: postcss.Syntax | postcss.Parse;
  19. }
  20. export default parse;