node-jest/examples/typescript/sum.ts

6 lines
142 B
TypeScript

// Copyright (c) 2014-present, Facebook, Inc. All rights reserved.
const sum = (a: number, b: number): number => a + b;
export default sum;