UNPKG

1.33 kBMarkdownView Raw
1# Installation
2> `npm install --save @types/postcss-calc`
3
4# Summary
5This package contains type definitions for postcss-calc (https://github.com/postcss/postcss-calc).
6
7# Details
8Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/postcss-calc.
9## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/postcss-calc/index.d.ts)
10````ts
11// Type definitions for postcss-calc 7.0
12// Project: https://github.com/postcss/postcss-calc
13// Definitions by: Jeow Li Huan <https://github.com/huan086>
14// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
15// TypeScript Version: 2.2
16
17import { Plugin } from "postcss";
18
19declare namespace calc {
20 interface Options {
21 precision?: number | undefined;
22 preserve?: boolean | undefined;
23 warnWhenCannotResolve?: boolean | undefined;
24 mediaQueries?: boolean | undefined;
25 selectors?: boolean | undefined;
26 }
27
28 type Calc = Plugin<Options>;
29}
30
31declare const calc: calc.Calc;
32export = calc;
33
34````
35
36### Additional Details
37 * Last updated: Fri, 09 Jul 2021 02:32:39 GMT
38 * Dependencies: [@types/postcss](https://npmjs.com/package/@types/postcss)
39 * Global values: none
40
41# Credits
42These definitions were written by [Jeow Li Huan](https://github.com/huan086).
43
\No newline at end of file