Is there a way to deceive the compiler into thinking that certain definitions are being used?
My constructor contains:
nv.addGraph(()=> {...})
Before my class declaration, I include:
public nv:nv;
In my model file, I define:
export interface nv{
addGraph:any;
models:any;
utils:any;
}
Despite these steps, an error persists:
error TS2304: Cannot find name 'nv'.
I attempted a different approach by creating the following class:
export class nv{
addGraph:any
}
This resulted in the error message:
error TS2339: Property 'addGraph' does not exist on type 'typeof nv'.
Any suggestions for solving this issue?