DefinitelyTyped/types/loadicons/index.d.ts
Piotr Błażejewicz (Peter Blazejewicz) 1e072652c3
feat(loadicons): new type definition v1.0 (#43167)
- definition type
- tests

https://github.com/adobe/loadIcons#usage

Thanks!
2020-03-24 17:31:32 -07:00

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;