Skip to content

Update Typescript Definitions for functions  #46

Description

@SeanDunford

Open to submitting a pr here but haven't dug into where the definitions live in the code yet.

Monky's fixture functionality raise problems for js code intellisense and the typescript compiler because it does not correctly indicate optional parameters. Below you will see 2 examples from my code base.

I believe we can solve these by updating the jsdoc documentation to overload functions for 2 parameters when they are used as promises and by indicating that userParams is optional.

image

image

Is there any thought to generate a index.d.ts file for this repo or adopt typescript in any fashion?

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