yeonjuan / parse-git-diff

parse git diff
MIT License
28 stars 3 forks source link

missing type for parse-git-diff on ESM ts file #15

Closed onemen closed 1 year ago

onemen commented 1 year ago

When using import parseGitDiff from 'parse-git-diff' on .ts file in ESM project with "type": "module",

I get this error for parseGitDiff:

This expression is not callable.
  Type 'typeof import("c:/_____/node_modules/parse-git-diff/build/index")' has no call signatures.ts(2349)
yeonjuan commented 1 year ago

@onemen Thank you for your report. We'll take a look and fix it.

yeonjuan commented 1 year ago

Hi, @onemen. It's support ESM project in v0.0.10. 👍

onemen commented 1 year ago

Thank you 👍👍👍