UNPKG

633 BTypeScriptView Raw
1// Type definitions for postcss-modules-local-by-default 1.2
2// Project: https://github.com/css-modules/postcss-modules-local-by-default
3// Definitions by: Jeow Li Huan <https://github.com/huan086>
4// Definitions: https://github.com/huan086/postcss-plugins-typings
5// TypeScript Version: 2.2
6
7import { Plugin } from "postcss";
8
9declare namespace localByDefault {
10 interface Options {
11 mode?: "global" | "local" | "pure";
12 rewriteUrl?: (global: boolean, url: string) => string;
13 }
14
15 type LocalByDefault = Plugin<Options>;
16}
17
18declare const localByDefault: localByDefault.LocalByDefault;
19export = localByDefault;