From 348f38b4f90225c79ae5ce67bbc20cd2a7f24fff Mon Sep 17 00:00:00 2001 From: Lukas Tetzlaff Date: Mon, 8 Apr 2019 11:36:19 +0200 Subject: [PATCH] fix Uint64 constructor --- types/cuint/index.d.ts | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/types/cuint/index.d.ts b/types/cuint/index.d.ts index 4b20b33973..e5cc104eb8 100644 --- a/types/cuint/index.d.ts +++ b/types/cuint/index.d.ts @@ -33,7 +33,15 @@ export interface UintConstructor { new (text: string, radix?: number): T; prototype: T; - } +} -export const UINT64: UintConstructor; +export interface Uint64Constructor extends UintConstructor { + // 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; export const UINT32: UintConstructor;