Skip to content

Commit 4d9f8b4

Browse files
committed
re-ensure tokTypes is exported as well
1 parent df3a5f7 commit 4d9f8b4

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

index.d.ts

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,4 +63,14 @@ export interface AcornJsxParser extends acorn.Parser {
6363
jsx_parseElement(): acorn.Node;
6464
}
6565

66-
export default function jsx(options?: Options): (BaseParser: typeof acorn.Parser) => AcornJsxParserCtor;
66+
export interface JsxFunctionProperties {
67+
tokTypes: JsxTokTypes;
68+
}
69+
70+
export type JsxFunctionSignature = (options?: Options) => (BaseParser: typeof acorn.Parser) => AcornJsxParserCtor
71+
72+
export type JsxFunction = JsxFunctionSignature & JsxFunctionProperties;
73+
74+
declare const jsx: JsxFunction;
75+
76+
export default jsx;

0 commit comments

Comments
 (0)