Skip to content

Commit 68572a7

Browse files
committed
fix: also fix duplicate identifier problem
1 parent 858cc25 commit 68572a7

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

index.d.ts

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,12 @@ interface JsxTokTypes extends AcornTokTypes {
77
jsxTagStart: acorn.TokenType
88
}
99

10-
declare const jsx: {
11-
tokTypes: JsxTokTypes;
12-
(options?: jsx.Options): (BaseParser: typeof acorn.Parser) => jsx.AcornJsxParserCtor
13-
}
14-
1510
type AcornTokTypes = typeof acorn.tokTypes;
1611

12+
declare function jsx(options?: jsx.Options): (BaseParser: typeof acorn.Parser) => jsx.AcornJsxParserCtor;
13+
1714
declare namespace jsx {
15+
const tokTypes: JsxTokTypes;
1816

1917
type TokTypes = JsxTokTypes
2018

0 commit comments

Comments
 (0)