Skip to content

Commit 20837c1

Browse files
authored
Add TypeScript type definitions (#122)
1 parent 52a6431 commit 20837c1

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

index.d.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
import { Parser } from 'acorn'
2+
3+
declare const jsx: (options?: jsx.AcornJSXOptions) => (BaseParser: typeof Parser) => typeof Parser;
4+
5+
declare namespace jsx {
6+
interface Options {
7+
allowNamespacedObjects?: boolean;
8+
allowNamespaces?: boolean;
9+
}
10+
}
11+
12+
export = jsx;

0 commit comments

Comments
 (0)