diff --git a/types/index.d.ts b/types/index.d.ts index 0d60adf..8999efa 100644 --- a/types/index.d.ts +++ b/types/index.d.ts @@ -8,6 +8,8 @@ export interface DeclarationAttributes { standalone?: 'yes' | 'no' } +export type ElementType = "instruction" | "text" | "comment" | "cdata" | "doctype" | "element"; + export interface ElementCompact { [key: string]: any _declaration?: { @@ -33,7 +35,7 @@ export interface Element { doctype?: string comment?: string text?: string | number | boolean - type?: string + type?: ElementType name?: string elements?: Array }