11 lines
169 B
TypeScript
11 lines
169 B
TypeScript
class Shape {
|
|
static create(): Shape {
|
|
return new Shape();
|
|
}
|
|
}
|
|
|
|
interface ShapeFactory {
|
|
create(): Shape;
|
|
}
|
|
|
|
var x: ShapeFactory = Shape;
|