tfl-api-wrapper
Version:
A Node JS wrapper for the Transport for London API
11 lines (10 loc) • 400 B
TypeScript
import TfLAPI from './tfl';
import TfL from './interfaces/tfl';
export default class AccidentStats extends TfLAPI {
constructor(config: string);
/**
* Gets all accident details for accidents occuring in the specified year
* @param year The year for which to filter the accidents on.
*/
getAll(year: number): Promise<Array<TfL['AccidentStats.AccidentDetail']>>;
}