mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
52 lines
1.3 KiB
Plaintext
52 lines
1.3 KiB
Plaintext
importAliasIdentifiers.ts(14,5): error TS2564: Property 'name' has no initializer and is not definitely assigned in the constructor.
|
|
|
|
|
|
==== importAliasIdentifiers.ts (1 errors) ====
|
|
namespace moduleA {
|
|
export class Point {
|
|
constructor(public x: number, public y: number) { }
|
|
}
|
|
}
|
|
|
|
import alias = moduleA;
|
|
|
|
var p: alias.Point;
|
|
var p: moduleA.Point;
|
|
var p: { x: number; y: number; };
|
|
|
|
class clodule {
|
|
name: string;
|
|
~~~~
|
|
!!! error TS2564: Property 'name' has no initializer and is not definitely assigned in the constructor.
|
|
}
|
|
|
|
namespace clodule {
|
|
export interface Point {
|
|
x: number; y: number;
|
|
}
|
|
var Point: Point = { x: 0, y: 0 };
|
|
}
|
|
|
|
import clolias = clodule;
|
|
|
|
var p: clolias.Point;
|
|
var p: clodule.Point;
|
|
var p: { x: number; y: number; };
|
|
|
|
|
|
function fundule() {
|
|
return { x: 0, y: 0 };
|
|
}
|
|
|
|
namespace fundule {
|
|
export interface Point {
|
|
x: number; y: number;
|
|
}
|
|
var Point: Point = { x: 0, y: 0 };
|
|
}
|
|
|
|
import funlias = fundule;
|
|
|
|
var p: funlias.Point;
|
|
var p: fundule.Point;
|
|
var p: { x: number; y: number; }; |