Skip to content

JsonKit.Types

github-actions[bot] edited this page Jul 30, 2023 · 1 revision

Namespace: Types

JsonKit.Types

Table of contents

Type Aliases

Type Aliases

TypeGuardFunction

Ƭ TypeGuardFunction<T>: (obj: any) => obj is T

Type parameters

NameDescription
TThe type to check against

Type declaration

▸ (obj): obj is T

A function that checks the input object against a specific type.

Example

typeFoo{bar: number}functionisFoo(obj: any): obj is Foo{const_obj: Partial<Foo>|null|undefined=objreturntypeof_obj?.bar==="number"}
Parameters
NameType
objany
Returns

obj is T

Defined in

types.ts:18

Clone this wiki locally