UNPKG

1.33 kBMarkdownView Raw
1# Installation
2> `npm install --save @types/icss-utils`
3
4# Summary
5This package contains type definitions for icss-utils (https://github.com/css-modules/icss-utils#readme).
6
7# Details
8Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/icss-utils.
9## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/icss-utils/index.d.ts)
10````ts
11import { Container, Rule } from "postcss";
12
13export interface Replacements {
14 [key: string]: string;
15}
16
17export interface CSSImports {
18 [key: string]: { [key: string]: string };
19}
20
21export interface CSSExports {
22 [key: string]: string;
23}
24
25export interface ExtractedICSS {
26 icssImports: CSSImports;
27 icssExports: CSSExports;
28}
29
30export function replaceValueSymbols(value: string, replacements: Replacements): string;
31
32export function replaceSymbols(css: Container, replacements: Replacements): void;
33
34export function extractICSS(css: Container, removeRules?: boolean): ExtractedICSS;
35
36export function createICSSRules(imports: CSSImports, exports: CSSExports): Rule[];
37
38````
39
40### Additional Details
41 * Last updated: Tue, 07 Nov 2023 03:09:37 GMT
42 * Dependencies: [postcss](https://npmjs.com/package/postcss)
43
44# Credits
45These definitions were written by [Bob Matcuk](https://github.com/bmatcuk).
46
\No newline at end of file