Installation
npm install --save @types/dom-css
Summary
This package contains type definitions for dom-css (https://github.com/mattdesl/dom-css).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/dom-css.
index.d.ts
type Style = keyof CSSStyleDeclaration | (string & Record<never, never>);
declare function set(element: HTMLElement, style: string | { [P in Style]?: string | number }): void;
declare function set(element: HTMLElement, property: Style, value: string | number): void;
export = set;
declare namespace set {
export { set };
export function get(element: HTMLElement, property: Style): string;
export function get<T extends Style[]>(element: HTMLElement, properties: T): { [P in T[number]]: string };
}
Additional Details
- Last updated: Mon, 06 Nov 2023 22:41:05 GMT
- Dependencies: none
Credits
These definitions were written by Tristan F..