guybedford / es-module-lexer

Low-overhead lexer dedicated to ES module parsing for fast analysis
MIT License
917 stars 48 forks source link

Importing ASM version breaks TypeScript #115

Closed JacobMGEvans closed 1 year ago

JacobMGEvans commented 2 years ago
import { parse } from 'es-module-lexer/js';

Cannot find module 'es-module-lexer/js' or its corresponding type declarations.ts(2307)

guybedford commented 2 years ago

I'd be happy to update the declaration definitions. It might just need a dist/lexer.asm.js reexporting the types.

guybedford commented 2 years ago

(PR would be helpful, otherwise I'll leave this up for now)

JacobMGEvans commented 2 years ago

If I find a spare moment 😄