DefinitelyTyped/types/svg-parser/index.d.ts
2017-11-12 00:54:52 +03:00

15 lines
434 B
TypeScript

// Type definitions for svg-parser 1.0
// Project: https://gitlab.com/Rich-Harris/svg-parser#README
// Definitions by: mrmlnc <https://github.com/mrmlnc>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.1
export interface Node {
name: string;
attributes: Record<string, string | number>;
children: Node[];
metadata?: string;
}
export function parse(content: string): Node;