mirror of
https://github.com/toss/es-toolkit.git
synced 2024-11-28 03:34:26 +03:00
docs(flip): Update docs for flip
(#618)
This commit is contained in:
parent
66baac2afc
commit
93d256d21d
@ -25,7 +25,7 @@ function flip<F extends (...args: any[]) => any>(func: F): (...args: Reversed<Pa
|
||||
## 例
|
||||
|
||||
```typescript
|
||||
function fn(a: any, b: any, c: any, d: any) {
|
||||
function fn(a: string, b: string, c: string, d: string) {
|
||||
return [a, b, c, d];
|
||||
}
|
||||
|
||||
|
@ -20,7 +20,7 @@ function flip<F extends (...args: any[]) => any>(func: F): (...args: Reversed<Pa
|
||||
|
||||
### Returns
|
||||
|
||||
(`(...args: ReverseParameters<Parameters<F>>) => ReturnType<F>`): A new function that takes the reversed arguments and returns the result of calling `func`.
|
||||
(`(...args: Reversed<Parameters<F>>) => ReturnType<F>`): A new function that takes the reversed arguments and returns the result of calling `func`.
|
||||
|
||||
## Example
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user