Recently, I've been delving into the Azure Atlas library and decided to create my custom typings for a third-party library. I crafted a typings file named atlas.d.ts
within the project structure, which the intellisense in VS Code successfully detects and enables me to utilize the typings. However, when I attempt to run ng serve
, an error crops up:
ReferenceError: atlas is not defined
My typings simply feature a namespace declaration as follows:
declare namespace atlas {
// ... Additional interfaces and classes are listed here
}
I have extensively studied the documentation regarding the implementation of global namespaces or modules in TypeScript and also perused various Stack Overflow threads. Despite modifying the tsconfig
to include the atlas.d.ts
file (even though the Angular-CLI ts config typically incorporates all typings files automatically), I am unable to resolve this issue.
Any insights on why ng serve
seems to be disregarding the typings? You can access the repository where I'm working on this here.