My /typings/$app.d.ts
file has the following structure:
declare class App {
test: object
}
export const $app: App;
https://i.sstatic.net/3HW7M.png
In order to enable intellisense, I have to auto-import it, resulting in a line like this at the beginning of my javascript code:
import { $app } from "../../typings/$app";
However, this causes some errors since it is a d.ts
file.
Is there a way to make this $app.d.ts
file global similar to how the window
object works?