Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "typing/type-checker"

Index

Functions

assert

  • assert(value: any, ty: ITypeDef): void

defaultValue

getType

isArray

  • isArray(x: any): boolean

isBoolean

  • isBoolean(x: any): boolean

isFunction

  • isFunction(x: any): boolean

isNull

  • isNull(x: any): boolean

isNumber

  • isNumber(x: any): boolean

isObject

  • isObject(x: any): boolean

isString

  • isString(x: any): boolean

isSymbol

  • isSymbol(x: any): boolean

isUndefined

  • isUndefined(x: any): boolean

ok

Object literals

Const preDefinedTypes

preDefinedTypes: object

Predefined types and their properties.

tyArray

tyArray: ITypeDef = tyArray

tyBool

tyBool: ITypeDef = tyBool

tyFunction

tyFunction: ITypeDef = tyFunction

tyNull

tyNull: ITypeDef = tyNull

tyNumber

tyNumber: ITypeDef = tyNumber

tyObject

tyObject: ITypeDef = tyObject

tyString

tyString: ITypeDef = tyString

tySymbol

tySymbol: ITypeDef = tySymbol

tyUndefined

tyUndefined: ITypeDef = tyUndefined

Const tyArray

tyArray: object

name

name: string = "Array"

pred

pred: isArray = isArray

val

  • val(): any[]

Const tyBool

tyBool: object

name

name: string = "Boolean"

pred

pred: isBoolean = isBoolean

val

val: boolean = false

Const tyFunction

tyFunction: object

name

name: string = "Function"

pred

pred: isFunction = isFunction

val

  • val(): void

Const tyNull

tyNull: object

name

name: string = "Null"

pred

pred: isNull = isNull

val

val: null = null

Const tyNumber

tyNumber: object

name

name: string = "Number"

pred

pred: isNumber = isNumber

val

val: number = 0

Const tyObject

tyObject: object

name

name: string = "Object"

pred

pred: isObject = isObject

val

  • val(): object

Const tyString

tyString: object

name

name: string = "String"

pred

pred: isString = isString

val

val: string = ""

Const tySymbol

tySymbol: object

name

name: string = "Symbol"

pred

pred: isSymbol = isSymbol

val

val: null = null

Const tyUndefined

tyUndefined: object

name

name: string = "Undefined"

pred

pred: isUndefined = isUndefined

val

val: undefined = undefined

Generated using TypeDoc