summaryrefslogtreecommitdiff
path: root/tests/specs/test/doc_ts_expect_error/mod.ts
blob: eeace602a9ab3c611828721964ed11645cb716ae (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
/**
 * ```ts
 * import { add } from "./mod.ts";
 *
 * add(1, 2);
 *
 * // @ts-expect-error: can only add numbers
 * add('1', '2');
 * ```
 */
export function add(first: number, second: number) {
  return first + second;
}