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
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: Tue, 07 Nov 2023 09:09:39 GMT
- Dependencies: none
Credits
These definitions were written by .