-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmod.d.ts
More file actions
35 lines (29 loc) · 848 Bytes
/
Copy pathmod.d.ts
File metadata and controls
35 lines (29 loc) · 848 Bytes
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
28
29
30
31
32
33
34
35
import type { Tick, Unit } from "./mod.ts";
declare global {
interface WindowEventMap {
"tick": CustomEvent<Tick>;
}
}
declare global {
interface Number {
/** @returns The unit of this number, or `Unit.unknown` if unset. */
get unit(): Unit;
set unit(value: Unit);
/** @returns This number with the given `unit` assigned. */
withUnit(unit: Unit): number;
/** @section Unit Conversions */
/** @returns The given `value` converted to milliseconds. */
get ms(): number;
/** @returns The given `value` converted to seconds. */
get seconds(): number;
}
interface Performance {
/** Returns a current time from Deno's start in seconds.
*
* Use the permission flag `--allow-hrtime` to return a precise value.
*
* @tags allow-hrtime
*/
nowSeconds(): number;
}
}