1 | // Type definitions for postcss-modules-scope 3.0
|
2 | // Project: https://github.com/css-modules/postcss-modules-scope
|
3 | // Definitions by: Jeow Li Huan <https://github.com/huan086>
|
4 | // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
5 | // TypeScript Version: 2.2
|
6 |
|
7 | import { PluginCreator } from "postcss";
|
8 |
|
9 | declare namespace scope {
|
10 | interface Options {
|
11 | generateScopedName?: ((
|
12 | name: string,
|
13 | path: string,
|
14 | css: string
|
15 | ) => string) | undefined;
|
16 |
|
17 | generateExportEntry?: ((
|
18 | name: string,
|
19 | scopedName: string,
|
20 | path: string,
|
21 | css: string
|
22 | ) => { key: string; value: string }) | undefined;
|
23 |
|
24 | exportGlobals?: boolean | undefined;
|
25 | }
|
26 | }
|
27 |
|
28 | declare const creator: PluginCreator<scope.Options>;
|
29 | export = creator;
|