1 | // Type definitions for postcss-safe-parser 5.0
|
2 | // Project: https://github.com/postcss/postcss-safe-parser#readme
|
3 | // Definitions by: Piotr Błażejewicz <https://github.com/peterblazejewicz>
|
4 | // Fabian van der Veen <https://github.com/fvanderveen>
|
5 | // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
6 | // TypeScript Version: 3.6
|
7 |
|
8 | import { Parser, Root } from 'postcss';
|
9 |
|
10 | /**
|
11 | * A fault-tolerant CSS parser for PostCSS, which will find & fix syntax errors, capable of parsing any input.
|
12 | * It is useful for:
|
13 | * Parse legacy code with many hacks. For example, it can parse all examples from {@link http://browserhacks.com/|Browserhacks}.
|
14 | * Works with demo tools with live input like {@link http://simevidas.jsbin.com/gufoko/quiet|Autoprefixer demo}.
|
15 | */
|
16 | declare namespace safeParser {
|
17 | type PostCssSafeParser = Parser<Root>;
|
18 | }
|
19 |
|
20 | declare const safeParser: safeParser.PostCssSafeParser;
|
21 |
|
22 | export = safeParser;
|