From 06ee43e6ada7f7cb125d80cd737217d2dbe712da Mon Sep 17 00:00:00 2001 From: dcode Date: Fri, 22 Feb 2019 08:25:00 +0100 Subject: [PATCH] Fix isFunction/isNullable typings --- std/assembly/index.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/std/assembly/index.d.ts b/std/assembly/index.d.ts index 09af2088..964a9680 100644 --- a/std/assembly/index.d.ts +++ b/std/assembly/index.d.ts @@ -129,9 +129,9 @@ declare function isString(value?: any): value is string | String; /** Tests if the specified type *or* expression can be used as an array. Compiles to a constant. */ declare function isArray(value?: any): value is Array; /** Tests if the specified type *or* expression is of a function type. Compiles to a constant. */ -declare function isFunction(value?: any): value is Array; +declare function isFunction(value?: any): value is (...args: any) => any; /** Tests if the specified type *or* expression is of a nullable reference type. Compiles to a constant. */ -declare function isNullable(value?: any): value is Array; +declare function isNullable(value?: any): bool; /** Tests if the specified expression resolves to a defined element. Compiles to a constant. */ declare function isDefined(expression: any): bool; /** Tests if the specified expression evaluates to a constant value. Compiles to a constant. */