@types/icss-utils
TypeScript icon, indicating that this package has built-in type declarations

5.1.2 • Public • Published

Installation

npm install --save @types/icss-utils

Summary

This package contains type definitions for icss-utils (https://github.com/css-modules/icss-utils#readme).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/icss-utils.

index.d.ts

import { Container, Rule } from "postcss";

export interface Replacements {
    [key: string]: string;
}

export interface CSSImports {
    [key: string]: { [key: string]: string };
}

export interface CSSExports {
    [key: string]: string;
}

export interface ExtractedICSS {
    icssImports: CSSImports;
    icssExports: CSSExports;
}

export function replaceValueSymbols(value: string, replacements: Replacements): string;

export function replaceSymbols(css: Container, replacements: Replacements): void;

export function extractICSS(css: Container, removeRules?: boolean): ExtractedICSS;

export function createICSSRules(imports: CSSImports, exports: CSSExports): Rule[];

Additional Details

  • Last updated: Tue, 07 Nov 2023 03:09:37 GMT
  • Dependencies: postcss

Credits

These definitions were written by Bob Matcuk.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/icss-utils

Weekly Downloads

11,598

Version

5.1.2

License

MIT

Unpacked Size

3.97 kB

Total Files

5

Last publish

Collaborators

  • types