Skip to content

Commit 00ec9b0

Browse files
committed
type: add node property closeAs, issue #48
1 parent f561e6b commit 00ec9b0

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

types/index.d.ts

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,14 @@
1-
import {Node} from 'posthtml-parser';
1+
export enum closingSingleTagOptionEnum {
2+
tag = 'tag',
3+
slash = 'slash',
4+
default = 'default',
5+
closeAs = 'closeAs'
6+
}
27

3-
export enum closingSingleTagEnum {
4-
Tag = 'tag',
5-
Slash = 'slash'
8+
export enum closingSingleTagTypeEnum {
9+
tag = 'tag',
10+
slash = 'slash',
11+
default = 'default'
612
}
713

814
export enum quoteStyleEnum {
@@ -27,7 +33,7 @@ export type Options = {
2733
* tag: `<br></br>`, slash: `<br />`, default: `<br>`
2834
*
2935
*/
30-
closingSingleTag?: closingSingleTagEnum;
36+
closingSingleTag?: closingSingleTagOptionEnum;
3137

3238
/**
3339
* If all attributes should be quoted.

0 commit comments

Comments
 (0)