Skip to content

Typescript definitions for core client? #125

@sekhavati

Description

@sekhavati

Hello 👋 When using this module as per the readme instructions, we don't get type definitions for the core client object. It comes back as any type. This then has repercussions for the rest of its usage throughout an app. For example:

const gocardless = require('gocardless-nodejs');

const client = gocardless(...); // ==> client is of type 'any'

const mandate = await client.mandates.find(mandateId); // ==> mandate is of type 'any'

etc etc

Perhaps I've missed something blatantly obvious...?

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