2.0.3 • Published 6 months ago
@types/insert-css v2.0.3
Installation
npm install --save @types/insert-css
Summary
This package contains type definitions for insert-css (https://github.com/substack/insert-css).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/insert-css.
index.d.ts
// Type definitions for insert-css 2.0
// Project: https://github.com/substack/insert-css
// Definitions by: Heye Vöcking <https://github.com/hvoecking>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
export interface InsertCssOptions {
container?: HTMLElement | undefined;
prepend?: boolean | undefined;
}
export interface InsertCssStyleElement extends HTMLStyleElement {
styleSheet?: CSSStyleSheet | undefined;
}
export function insertCss(
css: string,
options?: InsertCssOptions,
): InsertCssStyleElement;
Additional Details
- Last updated: Thu, 08 Jul 2021 14:23:15 GMT
- Dependencies: none
- Global values: none
Credits
These definitions were written by Heye Vöcking.