Skip to content

Errors with strict type-checking #33

@daneeq

Description

@daneeq

Hi,

I was experimenting with your library and I'm having trouble integrating it with my typescript code.

If I simply take the code in the current master and try to compile it with tsc, I get a large number of type-checking errors, ranging from implicit any to Object is possibly 'undefined to forbidden parameter assignments. I have set my tsconfig.json to "strict" = true as per recommended best practices.

As an alternative, I considered using your npm package but it didn't seem to contain the type definitions, so I would lose all the type-checking benefits after integration.

If I use it as normal javascript, everything works fine.

Thanks,
Dan

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions