Skip to content

Typescript compatibility #7

Description

@ilyasfoo

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

interfaceConsole{draft: (a)=>(b)=>{}}

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

declare global {interfaceConsole{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