JSPM

@types/insert-css

2.0.2
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 2615
  • Score
    100M100P100Q115987F
  • License MIT

TypeScript definitions for insert-css

Package Exports

    This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@types/insert-css) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

    Readme

    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

    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: Wed, 18 Oct 2023 01:17:35 GMT
    • Dependencies: none

    Credits

    These definitions were written by Heye Vöcking.