mirror of
https://github.com/swc-project/swc.git
synced 2025-01-04 03:21:58 +03:00
8 lines
232 B
TypeScript
8 lines
232 B
TypeScript
|
function fn1({ x, y }: { x: string, y: string }): string {
|
||
|
return x + y
|
||
|
}
|
||
|
|
||
|
function fn2({ x, y }: { x: string, y: string }): string {
|
||
|
const fn3: ({ x, y }: { x: string, y: string }) => string = fn1
|
||
|
return fn3({ x, y })
|
||
|
}
|