File: topLevelModuleDeclarationAndFile.errors.txt

package info (click to toggle)
node-typescript 3.3.3333-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 324,548 kB
  • sloc: makefile: 6; sh: 3
file content (20 lines) | stat: -rw-r--r-- 788 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
tests/cases/conformance/externalModules/foo_2.ts(3,14): error TS2339: Property 'x' does not exist on type 'typeof import("vs/foo_0")'.


==== tests/cases/conformance/externalModules/foo_2.ts (1 errors) ====
    /// <reference path="foo_1.ts"/>
    import foo = require("vs/foo_0");
    var z1 = foo.x + 10;   // Should error, as declaration should win
                 ~
!!! error TS2339: Property 'x' does not exist on type 'typeof import("vs/foo_0")'.
    var z2 = foo.y() + 10; // Should resolve
    
==== tests/cases/conformance/externalModules/vs/foo_0/index.ts (0 errors) ====
    export var x: number = 42;
    
==== tests/cases/conformance/externalModules/foo_1.ts (0 errors) ====
    declare module "vs/foo_0" {
    	export var y: () => number;
    }