fix Uint64 constructor

This commit is contained in:
Lukas Tetzlaff
2019-04-08 11:36:19 +02:00
parent c26c43b7e2
commit 348f38b4f9

View File

@@ -33,7 +33,15 @@ export interface UintConstructor<T extends Uint> {
new (text: string, radix?: number): T;
prototype: T;
}
}
export const UINT64: UintConstructor<Uint>;
export interface Uint64Constructor<T extends Uint> extends UintConstructor<T> {
// called as a function:
(a00: number, a16: number, a32: number, a48: number): T;
// called as constructor:
new (a00: number, a16: number, a32: number, a48: number): T;
}
export const UINT64: Uint64Constructor<Uint>;
export const UINT32: UintConstructor<Uint>;