k8w / tsrpc-examples

MIT License
263 stars 106 forks source link

求教下多人游戏示例里Object.merge()的实现 #6

Closed liujin1993 closed 2 years ago

liujin1993 commented 2 years ago

如题,在vscode里只看到了接口的定义,请问下具体实现是在哪里

interface ObjectConstructor {
    merge<T = unknown>(target: any, ...sources: any[]): T;
    values<T>(obj: T): T[keyof T][];
    entries<T>(o: { [s: string]: T }): [string, T][];
    forEach<T>(obj: T, handler: (v: T[keyof T], k: keyof T & string, obj: T) => void): void;
}
k8w commented 2 years ago

k8w-super-object 这个子库