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

17 lines
659 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-06-01 12:04:12 +03:00
export declare type Deferrable<T> = {
[K in keyof T]: T[K] | Promise<T[K]>;
2020-02-07 02:21:34 +03:00
};
2020-06-01 12:04:12 +03:00
export declare function resolveProperties<T>(object: Readonly<Deferrable<T>>): Promise<T>;
2019-05-15 01:48:48 +03:00
export declare function checkProperties(object: any, properties: {
[name: string]: boolean;
}): void;
2020-05-30 04:27:59 +03:00
export declare function shallowCopy<T>(object: T): T;
export declare function deepCopy<T>(object: T): 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
}