Skip to content

Commit

Permalink
type: add node property closeAs, issue #48
Browse files Browse the repository at this point in the history
  • Loading branch information
Scrum committed May 7, 2021
1 parent f561e6b commit 00ec9b0
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions types/index.d.ts
@@ -1,8 +1,14 @@
import {Node} from 'posthtml-parser';
export enum closingSingleTagOptionEnum {
tag = 'tag',
slash = 'slash',
default = 'default',
closeAs = 'closeAs'
}

export enum closingSingleTagEnum {
Tag = 'tag',
Slash = 'slash'
export enum closingSingleTagTypeEnum {
tag = 'tag',
slash = 'slash',
default = 'default'
}

export enum quoteStyleEnum {
Expand All @@ -27,7 +33,7 @@ export type Options = {
* tag: `<br></br>`, slash: `<br />`, default: `<br>`
*
*/
closingSingleTag?: closingSingleTagEnum;
closingSingleTag?: closingSingleTagOptionEnum;

/**
* If all attributes should be quoted.
Expand Down

0 comments on commit 00ec9b0

Please sign in to comment.