npm.io
1.0.2 • Published 2 years ago

@types/loadicons

Licence
MIT
Version
1.0.2
Deps
0
Size
3 kB
Vulns
0
Weekly
0
Stars
51.4K

Installation

npm install --save @types/loadicons

Summary

This package contains type definitions for loadicons (https://github.com/adobe/loadIcons).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/loadicons.

index.d.ts

type Callback = (error: Error | null, svg: SVGElement) => void;

/**
 * Load SVG icon sprites safely and asynchronously
 */
declare function loadIcons(svgURL: string, callback: Callback): void;

export as namespace loadIcons;
export = loadIcons;

Additional Details

  • Last updated: Tue, 07 Nov 2023 0938 GMT
  • Dependencies: none

Credits

These definitions were written by Piotr Błażejewicz.