mirror of
https://github.com/fluencelabs/assemblyscript
synced 2025-04-25 07:02:13 +00:00
Fix isFunction/isNullable typings
This commit is contained in:
parent
f318d68383
commit
06ee43e6ad
4
std/assembly/index.d.ts
vendored
4
std/assembly/index.d.ts
vendored
@ -129,9 +129,9 @@ declare function isString<T>(value?: any): value is string | String;
|
|||||||
/** Tests if the specified type *or* expression can be used as an array. Compiles to a constant. */
|
/** Tests if the specified type *or* expression can be used as an array. Compiles to a constant. */
|
||||||
declare function isArray<T>(value?: any): value is Array<any>;
|
declare function isArray<T>(value?: any): value is Array<any>;
|
||||||
/** Tests if the specified type *or* expression is of a function type. Compiles to a constant. */
|
/** Tests if the specified type *or* expression is of a function type. Compiles to a constant. */
|
||||||
declare function isFunction<T>(value?: any): value is Array<any>;
|
declare function isFunction<T>(value?: any): value is (...args: any) => any;
|
||||||
/** Tests if the specified type *or* expression is of a nullable reference type. Compiles to a constant. */
|
/** Tests if the specified type *or* expression is of a nullable reference type. Compiles to a constant. */
|
||||||
declare function isNullable<T>(value?: any): value is Array<any>;
|
declare function isNullable<T>(value?: any): bool;
|
||||||
/** Tests if the specified expression resolves to a defined element. Compiles to a constant. */
|
/** Tests if the specified expression resolves to a defined element. Compiles to a constant. */
|
||||||
declare function isDefined(expression: any): bool;
|
declare function isDefined(expression: any): bool;
|
||||||
/** Tests if the specified expression evaluates to a constant value. Compiles to a constant. */
|
/** Tests if the specified expression evaluates to a constant value. Compiles to a constant. */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user