UNPKG

785 BTypeScriptView Raw
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
7import { PluginCreator } from "postcss";
8
9declare 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}
25
26declare const creator: PluginCreator<scope.Options>;
27export = creator;