interface MathFn { (a: number, b: number): number } const sum: MathFn = (a, b) => a + b
function declarations, function expressions, arrow functions, methods등 TypeScript에서 함수를 선언하는 다양한 방법들. ↩
TypeScript에서 함수를 입력하는 방법에 대한 종합적인 가이드 ↩