摘要:
interface Type<T> extends Function { new (...args: any[]): T; } class Data { name = "ajanuw"; echo() {} get info() { return {}; } } function cls<T>(va 阅读全文
posted @ 2020-12-08 10:27
Ajanuw
阅读(3602)
评论(0)
推荐(0)
摘要:
interface IMessage { (value: any): void; success(): void; error(): void; version: string; } const Message: IMessage = function Message(value: any) { c 阅读全文
posted @ 2020-12-08 09:54
Ajanuw
阅读(1153)
评论(0)
推荐(0)
摘要:
class User { constructor(public readonly name: string, public readonly value: Function) {} } class Data { values: any[] = []; register(name: string, v 阅读全文
posted @ 2020-12-08 09:48
Ajanuw
阅读(819)
评论(0)
推荐(0)