ethers.js/packages/properties/lib.esm/index.d.ts

20 lines
750 B
TypeScript
Raw Normal View History

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]>;
};
2020-05-02 00:00:44 +03:00
export declare function resolveProperties<T>(object: Readonly<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
}