2.0.6 • Published 6 months ago

@types/ns-api v2.0.6

Weekly downloads
27
License
MIT
Repository
github
Last release
6 months ago

Installation

npm install --save @types/ns-api

Summary

This package contains type definitions for ns-api (https://github.com/fvdm/nodejs-ns-api#readme).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/ns-api.

index.d.ts

// Type definitions for ns-api 2.0
// Project: https://github.com/fvdm/nodejs-ns-api#readme
// Definitions by: Sander Koenders <https://github.com/Archcry>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

export = nsApi;
declare function nsApi(conf: nsApi.Configuration): nsApi;

interface nsApi {
    /**
     * Vertrektijden - departure times
     *
     * @param station - Station ID
     */
    vertrektijden(station: string, callback: (err: string, data: {}) => void): void;

    /**
     * Reisadvies - travel advise
     */
    reisadvies(params: {}, callback: (err: string, data: {}) => void): void;

    /** Prijzen - tariffs */
    prijzen(params: {}, callback: (err: any, data: {}) => void): void;

    /**
     * List available stations
     *
     * @param [treeKey] - Group by this key
     */
    stations(treeKey: string, callback: (err: string, data: {}) => void): void;
    stations(callback: (err: string, data: {}) => void): void;

    /** List disruptions */
    storingen(params: {}, callback: (err: string, data: {}) => void): void;
}

declare namespace nsApi {
    interface Configuration {
        username: string;
        password: string;
        timeout?: number | undefined;
    }
}

Additional Details

  • Last updated: Thu, 08 Jul 2021 18:51:40 GMT
  • Dependencies: none
  • Global values: none

Credits

These definitions were written by Sander Koenders.

2.0.5

7 months ago

2.0.6

6 months ago

2.0.4

2 years ago

2.0.3

3 years ago

2.0.2

6 years ago

2.0.1

7 years ago

2.0.0

7 years ago