9 lines
No EOL
196 B
TypeScript
9 lines
No EOL
196 B
TypeScript
// @declaration: true
|
|
// @noImplicitAny: true
|
|
// @strictNullChecks: true
|
|
|
|
export type Point = [number, number];
|
|
|
|
export function increment(point: Point) {
|
|
return point.map(d => d + 1);
|
|
} |