mirror of
https://github.com/swc-project/swc.git
synced 2024-12-27 15:42:51 +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 })
|
|
} |