Skip to content

Latest commit

 

History

History
62 lines (44 loc) · 872 Bytes

File metadata and controls

62 lines (44 loc) · 872 Bytes

typelab / aliases / NewableFunction

type NewableFunction<Params, Return> = Object;

Type that represents a newable function that takes specified parameters types and returns a specified type.

Type Parameters

Type Parameter Default type Description

Params extends ReadonlyArray

Any[]

The parameters types of the function as an array, defaults to any[].

Return

Any

The return type of the function, defaults to any.

Example

// MyNewableFunction is new (param_0: number, param_1: string) => string`
type MyNewableFunction = NewableFunction<[number, string], string>;