vanillajs-browser-helpers
Version:
Collection of convenience code snippets (helpers) that aims to make it a little easier to work with vanilla JS in the browser
11 lines (7 loc) • 380 B
TypeScript
export type CSSStyleKey = Exclude<
Exclude<keyof CSSStyleDeclaration, number>,
'getPropertyPriority' | 'getPropertyValue' | 'item' | 'removeProperty' | 'setProperty' | 'length' | 'parentRule'
>;
export type CSSStyleProperties = Partial<Record<CSSStyleKey, string | number | null>>;
export type VoidFunction = () => void;
export type GeneralWindow = Window | typeof window;