29 lines
424 B
Plaintext
29 lines
424 B
Plaintext
=== /app.ts ===
|
|
/// <reference path="./ref.d.ts"/>
|
|
/// <reference types="lib"/>
|
|
|
|
let x: $;
|
|
>x : $
|
|
>$ : $
|
|
|
|
let y = () => x
|
|
>y : () => $
|
|
>() => x : () => $
|
|
>x : $
|
|
|
|
|
|
=== /ref.d.ts ===
|
|
|
|
// $ comes from type declaration file - type reference directive should be added
|
|
|
|
declare let $: { x: number }
|
|
>$ : { x: number; }
|
|
>x : number
|
|
|
|
=== /types/lib/index.d.ts ===
|
|
interface $ { x }
|
|
>$ : $
|
|
>x : any
|
|
|
|
|