deno.land / std@0.166.0 / testing / _test_utils.ts

_test_utils.ts
نووسراو ببینە
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
// Copyright 2018-2022 the Deno authors. All rights reserved. MIT license.export class Point { constructor(public x: number, public y: number) {} // deno-lint-ignore no-explicit-any action(...args: any[]): any { return args[0]; } toString(): string { return [this.x, this.y].join(", "); } explicitTypes(_x: number, _y: string) { return true; } *[Symbol.iterator](): IterableIterator<number> { yield this.x; yield this.y; }}
export function stringifyPoint(point: Point) { return point.toString();}
export type PointWithExtra = Point & { nonExistent: () => number;};
std
Deno standard library
GitHub Repositorydenoland/deno_std
GitHub Stars
2458

Version Info

Tagged at
2 months ago