2020-02-07 02:21:34 +03:00
|
|
|
export declare function defineReadOnly<T, K extends keyof T>(object: T, name: K, value: T[K]): void;
|
2019-06-12 08:01:04 +03:00
|
|
|
export declare function getStatic<T>(ctor: any, key: string): T;
|
2020-02-07 02:21:34 +03:00
|
|
|
export declare type Similar<T> = {
|
|
|
|
[P in keyof T]: T[P];
|
|
|
|
};
|
|
|
|
export declare type Resolvable<T> = {
|
|
|
|
[P in keyof T]: T[P] | Promise<T[P]>;
|
|
|
|
};
|
|
|
|
export declare function resolveProperties<T>(object: Resolvable<T>): Promise<Similar<T>>;
|
2019-05-15 01:48:48 +03:00
|
|
|
export declare function checkProperties(object: any, properties: {
|
|
|
|
[name: string]: boolean;
|
|
|
|
}): void;
|
2020-02-07 02:21:34 +03:00
|
|
|
export declare function shallowCopy<T>(object: T): Similar<T>;
|
|
|
|
export declare function deepCopy<T>(object: T): Similar<T>;
|
2020-01-08 03:58:04 +03:00
|
|
|
export declare class Description<T = any> {
|
2020-04-25 10:54:54 +03:00
|
|
|
constructor(info: {
|
|
|
|
[K in keyof T]: T[K];
|
|
|
|
});
|
2019-05-15 01:48:48 +03:00
|
|
|
}
|