node-jest/examples/typescript/sub.ts

8 lines
173 B
TypeScript

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