I am able to make the linter recognize global.expect
as a variable with the following
// types.d.ts
namespace NodeJS {
interface Global {
expect: any
}
}
However, it won't autocomplete any of expect()
methods. I figure it's cause it's any
.
I'm trying to type it to the expect imported type but it's not working, Here's what I've tried.
import expectExport from 'expect';
namespace NodeJS {
interface Global {
expect: expectExport
}
}
What am I missing?