2.0.6 • Published 6 months ago
@types/ns-api v2.0.6
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.