1
0
mirror of https://github.com/svg/svgo.git synced 2025-07-31 07:44:22 +03:00

Cover svg parser with tsdoc (#1584)

Moved to lib/parser.js. The code will be slightly simpler
when JSAPI will be removed in v3.
This commit is contained in:
Bogdan Chadkin
2021-09-23 21:45:22 +03:00
committed by GitHub
parent 7111c52f96
commit 6e23b9cf56
7 changed files with 139 additions and 62 deletions

View File

@ -1,4 +1,4 @@
type XastDoctype = {
export type XastDoctype = {
type: 'doctype';
name: string;
data: {
@ -6,23 +6,23 @@ type XastDoctype = {
};
};
type XastInstruction = {
export type XastInstruction = {
type: 'instruction';
name: string;
value: string;
};
type XastComment = {
export type XastComment = {
type: 'comment';
value: string;
};
type XastCdata = {
export type XastCdata = {
type: 'cdata';
value: string;
};
type XastText = {
export type XastText = {
type: 'text';
value: string;
};