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)=>{}}}
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