@types/sntp

  • Version 3.0.1
  • Published
  • 4.65 kB
  • No dependencies
  • MIT license

Install

npm i @types/sntp
yarn add @types/sntp
pnpm add @types/sntp

Overview

TypeScript definitions for sntp

Index

Functions

function now

now: () => number;

    function offset

    offset: () => Promise<number>;

      function start

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

        function stop

        stop: () => void;

          function time

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

            Interfaces

            interface Options

            interface Options {}

              property host

              host?: string | undefined;

                property port

                port?: number | undefined;

                  property resolveReference

                  resolveReference?: boolean | undefined;

                    property timeout

                    timeout?: number | undefined;

                      interface TimeOptions

                      interface TimeOptions {}

                        property d

                        d: number;

                          property isValid

                          isValid: boolean;

                            property leapIndicator

                            leapIndicator: string;

                              property mode

                              mode: string;

                                property originateTimestamp

                                originateTimestamp: number;

                                  property pollInterval

                                  pollInterval: number;

                                    property precision

                                    precision: number;

                                      property receivedLocally

                                      receivedLocally: number;

                                        property receiveTimestamp

                                        receiveTimestamp: number;

                                          property referenceId

                                          referenceId: string;

                                            property referenceTimestamp

                                            referenceTimestamp: number;

                                              property rootDelay

                                              rootDelay: number;

                                                property rootDispersion

                                                rootDispersion: number;

                                                  property stratum

                                                  stratum: string;

                                                    property t

                                                    t: number;

                                                      property transmitTimestamp

                                                      transmitTimestamp: number;

                                                        property version

                                                        version: number;

                                                          Package Files (1)

                                                          Dependencies (0)

                                                          No dependencies.

                                                          Dev Dependencies (0)

                                                          No dev dependencies.

                                                          Peer Dependencies (0)

                                                          No peer dependencies.

                                                          Badge

                                                          To add a badge like this onejsDocs.io badgeto your package's README, use the codes available below.

                                                          You may also use Shields.io to create a custom badge linking to https://www.jsdocs.io/package/@types/sntp.

                                                          • Markdown
                                                            [![jsDocs.io](https://img.shields.io/badge/jsDocs.io-reference-blue)](https://www.jsdocs.io/package/@types/sntp)
                                                          • HTML
                                                            <a href="https://www.jsdocs.io/package/@types/sntp"><img src="https://img.shields.io/badge/jsDocs.io-reference-blue" alt="jsDocs.io"></a>