mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
ac28acd667
Co-authored-by: copilot-swe-agent[bot] <[email protected]> Co-authored-by: RyanCavanaugh <[email protected]> Co-authored-by: Jake Bailey <[email protected]> Co-authored-by: Ryan Cavanaugh <[email protected]>
85 lines
4.7 KiB
Plaintext
85 lines
4.7 KiB
Plaintext
externModule.ts(1,1): error TS2304: Cannot find name 'declare'.
|
|
externModule.ts(1,9): error TS2591: Cannot find name 'module'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node` and then add 'node' to the types field in your tsconfig.
|
|
externModule.ts(1,16): error TS1437: Namespace must be given a name.
|
|
externModule.ts(3,10): error TS2391: Function implementation is missing or not immediately following the declaration.
|
|
externModule.ts(4,10): error TS2391: Function implementation is missing or not immediately following the declaration.
|
|
externModule.ts(18,6): error TS2390: Constructor implementation is missing.
|
|
externModule.ts(20,13): error TS2391: Function implementation is missing or not immediately following the declaration.
|
|
externModule.ts(26,13): error TS2391: Function implementation is missing or not immediately following the declaration.
|
|
externModule.ts(28,13): error TS2391: Function implementation is missing or not immediately following the declaration.
|
|
externModule.ts(32,11): error TS2552: Cannot find name 'XDate'. Did you mean 'Date'?
|
|
externModule.ts(34,7): error TS2552: Cannot find name 'XDate'. Did you mean 'Date'?
|
|
externModule.ts(36,7): error TS2552: Cannot find name 'XDate'. Did you mean 'Date'?
|
|
externModule.ts(37,3): error TS2552: Cannot find name 'XDate'. Did you mean 'Date'?
|
|
|
|
|
|
==== externModule.ts (13 errors) ====
|
|
declare module {
|
|
~~~~~~~
|
|
!!! error TS2304: Cannot find name 'declare'.
|
|
~~~~~~
|
|
!!! error TS2591: Cannot find name 'module'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node` and then add 'node' to the types field in your tsconfig.
|
|
~
|
|
!!! 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 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 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 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 lib.es5.d.ts:--:--: 'Date' is declared here.
|
|
|
|
|