1 | # Installation
|
2 | > `npm install --save @types/sntp`
|
3 |
|
4 | # Summary
|
5 | This package contains type definitions for sntp (https://github.com/hueniverse/sntp).
|
6 |
|
7 | # Details
|
8 | Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/sntp.
|
9 | ## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/sntp/index.d.ts)
|
10 | ````ts
|
11 | export interface Options {
|
12 | host?: string | undefined;
|
13 | port?: number | undefined;
|
14 | resolveReference?: boolean | undefined;
|
15 | timeout?: number | undefined;
|
16 | }
|
17 |
|
18 | export interface TimeOptions {
|
19 | isValid: boolean;
|
20 | leapIndicator: string;
|
21 | version: number;
|
22 | mode: string;
|
23 | stratum: string;
|
24 | pollInterval: number;
|
25 | precision: number;
|
26 | rootDelay: number;
|
27 | rootDispersion: number;
|
28 | referenceId: string;
|
29 | referenceTimestamp: number;
|
30 | originateTimestamp: number;
|
31 | receiveTimestamp: number;
|
32 | transmitTimestamp: number;
|
33 | d: number;
|
34 | t: number;
|
35 | receivedLocally: number;
|
36 | }
|
37 |
|
38 | export function start(options?: Options): Promise<void>;
|
39 |
|
40 | export function stop(): void;
|
41 |
|
42 | export function offset(): Promise<number>;
|
43 |
|
44 | export function time(options?: Options): Promise<TimeOptions>;
|
45 |
|
46 | export function now(): number;
|
47 |
|
48 | ````
|
49 |
|
50 | ### Additional Details
|
51 | * Last updated: Tue, 07 Nov 2023 15:11:36 GMT
|
52 | * Dependencies: none
|
53 |
|
54 | # Credits
|
55 | These definitions were written by .
|
56 |
|
\ | No newline at end of file |