Open lolipop99 opened 6 years ago
interface ClockStatic {
new (hour: number, minute: number);
}
class Clock {
currentTime: Date;
constructor(h: number, m: number) { }
}
var cs: ClockStatic = Clock;
var newClock = new cs(7, 30);
https://static.jixun.moe/json2tsinterface.html http://json2ts.com/
介绍
http://morning.work/page/2017-04/how-to-write-a-port-scanner-in-nodejs-and-typescript.html