Skip to content

Provide type information for requireNode #380

@jacobq

Description

@jacobq

I'm using TypeScript and was seeing this warning / error:

TS2304: Cannot find name 'requireNode'.

I can make it go away by adding this line, but I know there must be a more automatic way to provide type information from the package itself (or at least from a @types/... package):

declare var requireNode: (name:string) => any;

Could we include support for that somehow?

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