保誠-保戶業務員媒合平台
tomasysh
2022-05-25 43d0eed31f4b2a59e23c06ceba3616aac3f549f6
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
// Type definitions for autoprefixer 9.7
// Project: https://github.com/postcss/autoprefixer
// Definitions by: Armando Meziat <https://github.com/odnamrataizem>
//                 murt <https://github.com/murt>
//                 Slava Fomin II <https://github.com/slavafomin>
//                 Piotr Błażejewicz <https://github.com/peterblazejewicz>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.7
 
import { Plugin } from 'postcss';
import { Stats } from 'browserslist';
 
declare namespace autoprefixer {
    type BrowserslistTarget = string | string[] | { [key: string]: string[] };
 
    interface Options {
        /** environment for `Browserslist` */
        env?: string;
        /** should Autoprefixer use Visual Cascade, if CSS is uncompressed */
        cascade?: boolean;
        /** should Autoprefixer add prefixes. */
        add?: boolean;
        /** should Autoprefixer [remove outdated] prefixes */
        remove?: boolean;
        /** should Autoprefixer add prefixes for @supports parameters. */
        supports?: boolean;
        /** should Autoprefixer add prefixes for flexbox properties */
        flexbox?: boolean | 'no-2009';
        /** should Autoprefixer add IE 10-11 prefixes for Grid Layout properties */
        grid?: false | 'autoplace' | 'no-autoplace';
        /** custom usage statistics for > 10% in my stats browsers query */
        stats?: Stats;
        /** @deprecated 'Change `browser` option to `overrideBrowserslist` in Autoprefixer */
        browser?: string;
        /**
         * @deprecated Replace Autoprefixer `browsers` option to Browserslist config.
         * Use `browserslist` key in `package.json` or `.browserslistrc` file.
         */
        browsers?: string[] | string;
        /** @deprecated Change `browserslist` option to `overrideBrowserslist` in Autoprefixer */
        browserslist?: string[] | string;
        /**
         * list of queries for target browsers.
         * Try to not use it.
         * The best practice is to use `.browserslistrc` config or `browserslist` key in `package.json`
         * to share target browsers with Babel, ESLint and Stylelint
         */
        overrideBrowserslist?: BrowserslistTarget;
        /** do not raise error on unknown browser version in `Browserslist` config. */
        ignoreUnknownVersions?: boolean;
    }
 
    interface ExportedAPI {
        /** Autoprefixer data */
        data: {
            browsers: any;
            prefixes: any;
        };
        /** Autoprefixer default browsers */
        defaults: any;
        /** Inspect with default Autoprefixer */
        info(): void;
    }
 
    type Autoprefixer = Plugin<Options> & ExportedAPI;
}
 
declare const autoprefixer: autoprefixer.Autoprefixer;
export = autoprefixer;