3.1.4 • Published 11 months ago

@types/hapi__sntp v3.1.4

Weekly downloads
2,276
License
MIT
Repository
github
Last release
11 months ago

Installation

npm install --save @types/hapi__sntp

Summary

This package contains type definitions for @hapi/sntp (https://github.com/hapijs/sntp).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/hapi__sntp.

index.d.ts

// Type definitions for @hapi/sntp 3.1
// Project: https://github.com/hapijs/sntp
// Definitions by: Silas Rech <https://github.com/lenovouser>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.8

export interface Options {
    host?: string | undefined;
    port?: number | undefined;
    resolveReference?: boolean | undefined;
    timeout?: number | undefined;
}

export interface TimeOptions {
    isValid: boolean;
    leapIndicator: string;
    version: number;
    mode: string;
    stratum: string;
    pollInterval: number;
    precision: number;
    rootDelay: number;
    rootDispersion: number;
    referenceId: string;
    referenceTimestamp: number;
    originateTimestamp: number;
    receiveTimestamp: number;
    transmitTimestamp: number;
    d: number;
    t: number;
    receivedLocally: number;
}

export function start(options?: Options): Promise<void>;

export function stop(): void;

export function offset(): Promise<number>;

export function time(options?: Options): Promise<TimeOptions>;

export function now(): number;

Additional Details

  • Last updated: Thu, 08 Jul 2021 14:22:44 GMT
  • Dependencies: none
  • Global values: none

Credits

These definitions were written by Silas Rech.

3.1.3

11 months ago

3.1.4

11 months ago

3.1.2

3 years ago

3.1.1

4 years ago

3.1.0

5 years ago