UNPKG

tfl-api-wrapper

Version:

A Node JS wrapper for the Transport for London API

26 lines (25 loc) 617 B
declare module Crowding { interface TimeBand { timeBand: string; percentageOfBaseLine: number; } interface DaysOfWeek { dayOfWeek: string; amPeakTimeBand: string; pmPeakTimeBand: string; timeBands: TimeBand[]; } interface Live { dataAvailable: boolean; percentageOfBaseline: number; timeUtc: Date; timeLocal: Date; } interface Root { naptan: string; daysOfWeek?: DaysOfWeek[]; isFound: boolean; isAlwaysQuiet: boolean; } } export default Crowding;