Skip to content

This package has type errors #32

Open
@kaiyoma

Description

@kaiyoma

If I install this package and run the type checker, a couple errors are detected in the package itself:

node_modules/.pnpm/gitdiff-parser@0.3.0/node_modules/gitdiff-parser/index.d.ts:53:16 - error TS2714: The expression of an export assignment must be an identifier or qualified name in an ambient context.

53 export default {
                  ~
54     parse(source: string): File[];
   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
55 };
   ~

node_modules/.pnpm/gitdiff-parser@0.3.0/node_modules/gitdiff-parser/index.d.ts:54:34 - error TS1005:
 '{' expected.

54     parse(source: string): File[];
                                    ~


Found 2 errors in the same file, starting at: node_modules/.pnpm/gitdiff-parser@0.3.0/node_modules/gitdiff-parser/index.d.ts:53

There's a PR to fix this (#27) but it's been stale for 9 months for some reason. Can we get this fixed?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions