File: externModule.errors.txt

package info (click to toggle)
node-typescript 5.0.4%2Bds1-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 459,140 kB
  • sloc: javascript: 1,972,754; makefile: 6; sh: 1
file content (85 lines) | stat: -rw-r--r-- 4,975 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
tests/cases/compiler/externModule.ts(1,1): error TS2304: Cannot find name 'declare'.
tests/cases/compiler/externModule.ts(1,9): error TS2580: Cannot find name 'module'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node`.
tests/cases/compiler/externModule.ts(1,16): error TS1437: Namespace must be given a name.
tests/cases/compiler/externModule.ts(3,10): error TS2391: Function implementation is missing or not immediately following the declaration.
tests/cases/compiler/externModule.ts(4,10): error TS2391: Function implementation is missing or not immediately following the declaration.
tests/cases/compiler/externModule.ts(18,6): error TS2390: Constructor implementation is missing.
tests/cases/compiler/externModule.ts(20,13): error TS2391: Function implementation is missing or not immediately following the declaration.
tests/cases/compiler/externModule.ts(26,13): error TS2391: Function implementation is missing or not immediately following the declaration.
tests/cases/compiler/externModule.ts(28,13): error TS2391: Function implementation is missing or not immediately following the declaration.
tests/cases/compiler/externModule.ts(32,11): error TS2552: Cannot find name 'XDate'. Did you mean 'Date'?
tests/cases/compiler/externModule.ts(34,7): error TS2552: Cannot find name 'XDate'. Did you mean 'Date'?
tests/cases/compiler/externModule.ts(36,7): error TS2552: Cannot find name 'XDate'. Did you mean 'Date'?
tests/cases/compiler/externModule.ts(37,3): error TS2552: Cannot find name 'XDate'. Did you mean 'Date'?


==== tests/cases/compiler/externModule.ts (13 errors) ====
    declare module {
    ~~~~~~~
!!! error TS2304: Cannot find name 'declare'.
            ~~~~~~
!!! error TS2580: Cannot find name 'module'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node`.
                   ~
!!! error TS1437: Namespace must be given a name.
        export class XDate {
    		public getDay():number;
    		       ~~~~~~
!!! error TS2391: Function implementation is missing or not immediately following the declaration.
    		public getXDate():number;
    		       ~~~~~~~~
!!! error TS2391: Function implementation is missing or not immediately following the declaration.
    		// etc.
    
    	    // Called as a function
    	    // Not supported anymore? public (): string;
    	    
    	    // Called as a constructor
    	    constructor(year: number, month: number);
    	    constructor(year: number, month: number, date: number);
    	    constructor(year: number, month: number, date: number, hours: number);
    	    constructor(year: number, month: number, date: number, hours: number, minutes: number);
    	    constructor(year: number, month: number, date: number, hours: number, minutes: number, seconds: number);
    	    constructor(year: number, month: number, date: number, hours: number, minutes: number, seconds: number, ms: number);
    	    constructor(value: number);
    	    constructor();
    	    ~~~~~~~~~~~~~~
!!! error TS2390: Constructor implementation is missing.
    	    
    	    static parse(string: string): number;
    	           ~~~~~
!!! error TS2391: Function implementation is missing or not immediately following the declaration.
    	    static UTC(year: number, month: number): number;
    	    static UTC(year: number, month: number, date: number): number;
    	    static UTC(year: number, month: number, date: number, hours: number): number;
    	    static UTC(year: number, month: number, date: number, hours: number, minutes: number): number;
    	    static UTC(year: number, month: number, date: number, hours: number, minutes: number, seconds: number): number;
    	    static UTC(year: number, month: number, date: number, hours: number, minutes: number, seconds: number,
    	           ~~~
!!! error TS2391: Function implementation is missing or not immediately following the declaration.
    		         ms: number): number;
    	    static now(): number;
    	           ~~~
!!! error TS2391: Function implementation is missing or not immediately following the declaration.
        }
    }
    
    var d=new XDate();
              ~~~~~
!!! error TS2552: Cannot find name 'XDate'. Did you mean 'Date'?
!!! related TS2728 /.ts/lib.es5.d.ts:--:--: 'Date' is declared here.
    d.getDay();
    d=new XDate(1978,2);
          ~~~~~
!!! error TS2552: Cannot find name 'XDate'. Did you mean 'Date'?
!!! related TS2728 /.ts/lib.es5.d.ts:--:--: 'Date' is declared here.
    d.getXDate();
    var n=XDate.parse("3/2/2004");
          ~~~~~
!!! error TS2552: Cannot find name 'XDate'. Did you mean 'Date'?
!!! related TS2728 /.ts/lib.es5.d.ts:--:--: 'Date' is declared here.
    n=XDate.UTC(1964,2,1);
      ~~~~~
!!! error TS2552: Cannot find name 'XDate'. Did you mean 'Date'?
!!! related TS2728 /.ts/lib.es5.d.ts:--:--: 'Date' is declared here.