// @noImplicitReferences: true // @traceResolution: true // @declaration: true // @typeRoots: /types // @currentDirectory: / // @filename: /ref.d.ts export interface $ { x } // @filename: /types/lib/index.d.ts declare let $: { x: number } // @filename: /app.ts /// import {$} from "./ref"; export interface A { x: typeof $; }