Closed Nauja closed 3 years ago
Hello, i'm pretty sure the index.d.ts file should be:
import { Parser } from 'acorn' declare const jsx: (options?: jsx.AcornJSXOptions) => (BaseParser: typeof Parser) => typeof Parser; declare namespace jsx { - interface Options { + interface AcornJSXOptions { allowNamespacedObjects?: boolean; allowNamespaces?: boolean; } } export = jsx;
Oh yeah either that, or, better yet, changing options?: jsx.AcornJSXOptions to options?: jsx.Options makes sense. Want to make a PR?
options?: jsx.AcornJSXOptions
options?: jsx.Options
Hello, i'm pretty sure the index.d.ts file should be: