My dilemma lies in the process of importing a module and trying to typehint it within a function, yet I'm faced with this error message:
Cannot use namespace 'joi' as type
import joi from "joi";
export function init(cb: (joi: joi) => any) {
let result = cb(joi);
...
}
Any ideas on how to resolve this issue?