Provides static functions that extend the built-in ECMAScript (JavaScript) Function type by including exception details and support for application-compilation modes (debug or release).

see

{@link http://msdn.microsoft.com/en-us/library/dd409270(v=vs.100).aspx}

Index

Call signatures

Construct signatures

Properties

Methods

Call signatures

(args?: Array<string>): Function

Parameters

  • args?: Array<string> optional

Returns

Function

Construct signatures

constructor(args?: Array<string>): Function

Creates a new function.

Parameters

  • args?: Array<string> optional

    A list of arguments the function accepts.

Returns

Function

Properties

public prototype: Function

Methods

public createCallback(method: Function, context?: Array<any>): Function

Creates a delegate function that retains the context first used during an objects creation.

see

{@link http://msdn.microsoft.com/en-us/library/dd393582(v=vs.100).aspx }

Parameters

  • method: Function
  • context?: Array<any> optional

Returns

Function

public createDelegate(instance: any, method: Function): Function

Creates a callback function that retains the parameter initially used during an object's creation.

see

{@link http://msdn.microsoft.com/en-us/library/dd409287(v=vs.100).aspx }

Parameters

Returns

Function

public emptyMethod(): Function

A function that does nothing.

see

{@link http://msdn.microsoft.com/en-us/library/dd393667(v=vs.100).aspx }

Returns

Function

public validateParameters(parameters: any, expectedParameters: Array<Object>, validateParameterCount?: boolean): any

Validates the parameters to a method are as expected.

see

{@link http://msdn.microsoft.com/en-us/library/dd393712(v=vs.100).aspx }

Parameters

  • parameters: any
  • expectedParameters: Array<Object>
  • validateParameterCount?: boolean optional

Returns

any