first commit
This commit is contained in:
commit
eb2f504652
32490 changed files with 5731109 additions and 0 deletions
20
node_modules/canvg/lib/Parser.d.ts
generated
vendored
Normal file
20
node_modules/canvg/lib/Parser.d.ts
generated
vendored
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
export interface IParserOptions {
|
||||
/**
|
||||
* WHATWG-compatible `fetch` function.
|
||||
*/
|
||||
fetch?: typeof fetch;
|
||||
/**
|
||||
* XML/HTML parser from string into DOM Document.
|
||||
*/
|
||||
DOMParser?: typeof DOMParser;
|
||||
}
|
||||
export default class Parser {
|
||||
private readonly fetch;
|
||||
private readonly DOMParser;
|
||||
constructor({ fetch, DOMParser }?: IParserOptions);
|
||||
parse(resource: string): Promise<Document>;
|
||||
parseFromString(xml: string): Document;
|
||||
private checkDocument;
|
||||
load(url: string): Promise<Document>;
|
||||
}
|
||||
//# sourceMappingURL=Parser.d.ts.map
|
||||
Loading…
Add table
Add a link
Reference in a new issue