docs(flip): Update docs for flip (#618)

This commit is contained in:
Dongho Kim 2024-09-29 17:36:37 +09:00 committed by GitHub
parent 66baac2afc
commit 93d256d21d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -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];
}

View File

@ -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