type Function<Params, Return> = (...param) => Return;Type that represents a 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 |
| Parameter | Type |
|---|---|
|
... |
|
Return
// MyFunction is (param_0: number, param_1: string) => string
type MyFunction = Function<[number, string], string>;