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

17 lines
694 B
TypeScript
Raw Permalink Normal View History

2020-02-06 18:21:34 -05:00
export declare function defineReadOnly<T, K extends keyof T>(object: T, name: K, value: T[K]): void;
2019-06-12 01:01:04 -04:00
export declare function getStatic<T>(ctor: any, key: string): T;
2020-06-01 05:04:12 -04:00
export declare type Deferrable<T> = {
[K in keyof T]: T[K] | Promise<T[K]>;
2020-02-06 18:21:34 -05:00
};
2020-06-01 05:04:12 -04:00
export declare function resolveProperties<T>(object: Readonly<Deferrable<T>>): Promise<T>;
2019-05-14 18:48:48 -04:00
export declare function checkProperties(object: any, properties: {
[name: string]: boolean;
}): void;
2020-05-29 21:27:59 -04:00
export declare function shallowCopy<T>(object: T): T;
export declare function deepCopy<T>(object: T): T;
2020-01-07 19:58:04 -05:00
export declare class Description<T = any> {
2020-04-25 03:54:54 -04:00
constructor(info: {
[K in keyof T]: T[K];
});
2019-05-14 18:48:48 -04:00
}
//# sourceMappingURL=index.d.ts.map