Skip to content

Typescript compatibilityΒ #7

@ilyasfoo

Description

@ilyasfoo

Because this module extends functionality of Console, the following is required to avoid typescript complaining about missing "draft" function:

interface Console {
        draft: (a) => (b) => {}
}

I think to support this from the module level, we can use the global declaration feature

declare global {
    interface Console {
        draft: (a) => (b) => {}
    }
}

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