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 Parameter | Default type | Description |
|---|---|---|
|
|
|
The parameters types of the function as an array, defaults to |
|
|
The return type of the function, defaults to |
// MyNewableFunction is new (param_0: number, param_1: string) => string`
type MyNewableFunction = NewableFunction<[number, string], string>;