Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "typescript-1.4"

Index

Type aliases

Callback

Callback: function

A type alias of for a callback function.

Type declaration

    • (...parameters: string[]): string
    • Parameters

      • Rest ...parameters: string[]

        The rest parameter.

      Returns string

GenericCallback

GenericCallback: function

A type alias of for a generic callback function.

returns

Some return value.

Type declaration

    • <T>(val: T, index: number, arr: Array<T>): any
    • Type parameters

      • T

        Some type argument.

      Parameters

      • val: T

        Some generic value.

      • index: number

        Some index value.

      • arr: Array<T>

        A generic array.

      Returns any

MyNumber

MyNumber: number

A type alias describing a primitive value.

MyRunOptions

MyRunOptions: RunOptions

A type alias describing a reference type.

PrimitiveArray

PrimitiveArray: Array<string | number | boolean>

A type alias describing an array.

Variables

callback

callback: Callback

A variable pointing to a type alias.

interfaceOrString

interfaceOrString: RunOptions | string

A variable defined using an union type.

Functions

functionUsingTypes

functionWithGenericCallback

  • functionWithGenericCallback<T>(arr: Array<T>, callback: GenericCallback): any
  • A generic function using a generic type alias.

    Type parameters

    • T

      Some type argument.

    Parameters

    • arr: Array<T>

      A generic array.

    • callback: GenericCallback

      Some generic type alias callback.

    Returns any

    Some return value.

Generated using TypeDoc