UNPKG

640 BTypeScriptView Raw
1// Type definitions for postcss-calc 7.0
2// Project: https://github.com/postcss/postcss-calc
3// Definitions by: Jeow Li Huan <https://github.com/huan086>
4// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
5// TypeScript Version: 2.2
6
7import { Plugin } from "postcss";
8
9declare namespace calc {
10 interface Options {
11 precision?: number | undefined;
12 preserve?: boolean | undefined;
13 warnWhenCannotResolve?: boolean | undefined;
14 mediaQueries?: boolean | undefined;
15 selectors?: boolean | undefined;
16 }
17
18 type Calc = Plugin<Options>;
19}
20
21declare const calc: calc.Calc;
22export = calc;