mirror of
https://github.com/swc-project/swc.git
synced 2024-12-21 12:41:54 +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 })
|
|
} |