npm.io
1.1.3 • Published 1 year ago

@types/stylenames

Licence
MIT
Version
1.1.3
Deps
0
Size
3 kB
Vulns
0
Weekly
0
Stars
51.4K

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.