@types/svg-parser
Advanced tools
Comparing version 2.0.2 to 2.0.3
@@ -10,3 +10,3 @@ // Type definitions for svg-parser 2.0 | ||
type: 'text'; | ||
value?: string | boolean | number; | ||
value?: string | boolean | number | undefined; | ||
} | ||
@@ -16,7 +16,7 @@ | ||
type: 'element'; | ||
tagName?: string; | ||
properties?: Record<string, string|number>; | ||
tagName?: string | undefined; | ||
properties?: Record<string, string|number> | undefined; | ||
children: Array<Node | string>; | ||
value?: string; | ||
metadata?: string; | ||
value?: string | undefined; | ||
metadata?: string | undefined; | ||
} | ||
@@ -23,0 +23,0 @@ |
{ | ||
"name": "@types/svg-parser", | ||
"version": "2.0.2", | ||
"version": "2.0.3", | ||
"description": "TypeScript definitions for svg-parser", | ||
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/svg-parser", | ||
"license": "MIT", | ||
@@ -32,4 +33,4 @@ "contributors": [ | ||
"dependencies": {}, | ||
"typesPublisherContentHash": "200eb00f9e86437da9feeab00c6630445166ee0fd21a3fad5a51df9f5eb6e1de", | ||
"typeScriptVersion": "3.5" | ||
"typesPublisherContentHash": "53097f21e4d18c056b78bf10478b3a05a2f223193cb0e1147c475464bbc9cbde", | ||
"typeScriptVersion": "3.6" | ||
} |
@@ -9,5 +9,40 @@ # Installation | ||
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/svg-parser. | ||
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/svg-parser/index.d.ts) | ||
````ts | ||
// Type definitions for svg-parser 2.0 | ||
// Project: https://github.com/Rich-Harris/svg-parser | ||
// Definitions by: mrmlnc <https://github.com/mrmlnc> | ||
// Joel Shinness <https://github.com/JoelCodes> | ||
// Piotr Błażejewicz <https://github.com/peterblazejewicz> | ||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped | ||
export interface TextNode { | ||
type: 'text'; | ||
value?: string | boolean | number | undefined; | ||
} | ||
export interface ElementNode { | ||
type: 'element'; | ||
tagName?: string | undefined; | ||
properties?: Record<string, string|number> | undefined; | ||
children: Array<Node | string>; | ||
value?: string | undefined; | ||
metadata?: string | undefined; | ||
} | ||
export type Node = TextNode | ElementNode; | ||
export interface RootNode { | ||
type: 'root'; | ||
children: [Node]; | ||
} | ||
export function parse(source: string): RootNode; | ||
export as namespace svgParser; | ||
```` | ||
### Additional Details | ||
* Last updated: Tue, 04 May 2021 20:31:32 GMT | ||
* Last updated: Fri, 02 Jul 2021 22:33:12 GMT | ||
* Dependencies: none | ||
@@ -14,0 +49,0 @@ * Global values: `svgParser` |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
4799
0
52