Within the .ts file, I have the following code snippet:
import { Observable } from 'rxjs/Rx';
export interface Loader<T> {
(q: string) : Observable<T[]>;
}
Further down in the same file, inside a different class, I have
if (this.field instanceof Loader)
This results in the following compile error:
Cannot find name 'Loader'.
I double-checked and confirmed that it is not a typo.
Any insights into why this error is occurring?