'Defining dynamic function parameters in Typescript
Given this:
type params = Parameters<(x: string, y:number)=>void>
In the pseudo code below how does one make fn to be (x: string, y:number)=>void, but using the params type?
type fn = (...params)=>void // type should be (x: string, y:number)=>void
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
