File tree Expand file tree Collapse file tree 1 file changed +15
-8
lines changed Expand file tree Collapse file tree 1 file changed +15
-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 class AcornJsxParser extends acorn . Parser {
11+ static readonly acornJsx : {
12+ tokTypes : typeof acorn . tokTypes
13+ } ;
14+
15+ jsx_readString ( quote : number ) : void ;
16+ }
17+
18+ export as namespace jsx ;
19+ export default jsx ;
You can’t perform that action at this time.
0 commit comments