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:
10
lib/types.ts
10
lib/types.ts
@ -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;
|
||||
};
|
||||
|
Reference in New Issue
Block a user