File tree Expand file tree Collapse file tree 1 file changed +22
-8
lines changed Expand file tree Collapse file tree 1 file changed +22
-8
lines changed Original file line number Diff line number Diff line change 1- import { Parser } from 'acorn'
1+ import acorn from 'acorn' ;
22
3- declare const jsx : ( options ?: jsx . Options ) => ( BaseParser : typeof Parser ) => typeof Parser ;
3+ export const jsx : ( options ?: jsx . Options ) => ( BaseParser : typeof acorn . Parser ) => typeof acorn . Parser ;
44
5- declare namespace jsx {
6- interface Options {
7- allowNamespacedObjects ?: boolean ;
8- allowNamespaces ?: boolean ;
9- }
5+ export interface Options {
6+ allowNamespacedObjects ?: boolean ;
7+ allowNamespaces ?: boolean ;
108}
119
12- export = jsx ;
10+ export const tokTypes : {
11+ jsxName : acorn . TokenType ,
12+ jsxText : acorn . TokenType ,
13+ jsxTagEnd : acorn . TokenType ,
14+ jsxTagStart : acorn . TokenType
15+ } & typeof acorn . tokTypes ;
16+
17+ export class AcornJsxParser extends acorn . Parser {
18+ static readonly acornJsx : {
19+ tokTypes : typeof tokTypes
20+ } ;
21+
22+ jsx_readString ( quote : number ) : void ;
23+ }
24+
25+ export as namespace jsx ;
26+ export default jsx ;
You can’t perform that action at this time.
0 commit comments