Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@types/svg-parser

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/svg-parser - npm Package Compare versions

Comparing version 2.0.2 to 2.0.3

10

svg-parser/index.d.ts

@@ -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`

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc