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) => {}
}
}
Because this module extends functionality of Console, the following is required to avoid typescript complaining about missing "draft" function:
I think to support this from the module level, we can use the global declaration feature