Skip to content

typings: createInstance should return constructor function #57

@harbeedev

Description

@harbeedev

Hi, I believe the typescript signature of createInstance should be:

export function createInstance<T>(defaultProps?: AsyncProps<T>): new() => Async<T>

I have tested this locally, and I'm happy to create a pull request if needed.

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