mirror of
https://github.com/FlipsideCrypto/DefinitelyTyped.git
synced 2026-02-06 10:56:53 +00:00
15 lines
476 B
TypeScript
15 lines
476 B
TypeScript
// Type definitions for loadicons 1.0
|
|
// Project: https://github.com/adobe/loadIcons
|
|
// Definitions by: Piotr Błażejewicz <https://github.com/peterblazejewicz>
|
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
|
|
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;
|