UNPKG

422 BTypeScriptView Raw
1import * as CSS from 'csstype';
2import { CamelProperty, HyphenProperty, Property } from './types';
3declare function style(node: HTMLElement, property: Partial<Record<Property, string>>): void;
4declare function style<T extends HyphenProperty>(node: HTMLElement, property: T): CSS.PropertiesHyphen[T];
5declare function style<T extends CamelProperty>(node: HTMLElement, property: T): CSS.Properties[T];
6export default style;