in js, i use following code
function m() {
console.log(this)
}
m()
this return current context
but in ts, I use following code, this return undefine
function m() {
// @ts-ignore
console.log(this)
}
m()
I hope use this get current context in typescript, how to do?