Installation
npm install --save @types/stylenames
Summary
This package contains type definitions for stylenames (https://github.com/kmathmann/stylenames).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/stylenames.
index.d.ts
declare namespace styleNames {
type StyleValueConditionFunction = () => boolean | null | undefined;
type StyleValueObject = Record<string | number, boolean | StyleValueConditionFunction>;
type StyleValue = null | undefined | string | StyleValueObject;
type StyleObject = Partial<Record<keyof CSSStyleDeclaration, StyleValue>>;
}
declare function styleNames(styles: styleNames.StyleObject): string;
export = styleNames;
Additional Details
- Last updated: Fri, 04 Oct 2024 1627 GMT
- Dependencies: none
Credits
These definitions were written by Ben Grynhaus.