1 | # Installation
|
2 | > `npm install --save @types/icss-utils`
|
3 |
|
4 | # Summary
|
5 | This package contains type definitions for icss-utils (https://github.com/css-modules/icss-utils#readme).
|
6 |
|
7 | # Details
|
8 | Files 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
|
11 | import { Container, Rule } from "postcss";
|
12 |
|
13 | export interface Replacements {
|
14 | [key: string]: string;
|
15 | }
|
16 |
|
17 | export interface CSSImports {
|
18 | [key: string]: { [key: string]: string };
|
19 | }
|
20 |
|
21 | export interface CSSExports {
|
22 | [key: string]: string;
|
23 | }
|
24 |
|
25 | export interface ExtractedICSS {
|
26 | icssImports: CSSImports;
|
27 | icssExports: CSSExports;
|
28 | }
|
29 |
|
30 | export function replaceValueSymbols(value: string, replacements: Replacements): string;
|
31 |
|
32 | export function replaceSymbols(css: Container, replacements: Replacements): void;
|
33 |
|
34 | export function extractICSS(css: Container, removeRules?: boolean): ExtractedICSS;
|
35 |
|
36 | export 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
|
45 | These definitions were written by [Bob Matcuk](https://github.com/bmatcuk).
|
46 |
|
\ | No newline at end of file |