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

9 lines
318 B
TypeScript
Raw Permalink Normal View History

2022-04-11 17:14:19 -04:00
export interface Freezable<T> {
clone(): T;
freeze(): Frozen<T>;
isFrozen(): boolean;
}
export declare type Frozen<T> = Readonly<{
[P in keyof T]: T[P] extends (...args: Array<any>) => any ? T[P] : T[P] extends Freezable<any> ? Frozen<T[P]> : Readonly<T[P]>;
}>;
//# sourceMappingURL=freezable.d.ts.map