UNPKG

tfl-ts

Version:

🚇 Fully-typed TypeScript client for Transport for London (TfL) API • Zero dependencies • Auto-generated types • Real-time arrivals • Journey planning • Universal compatibility

8 lines (7 loc) • 350 B
/** * Utility function to strip $type fields from objects and handle empty objects * @param obj - The object to process * @param keepTflTypes - Whether to keep $type fields * @returns The processed object with $type fields removed (unless keepTflTypes is true) */ export declare const stripTypeFields: (obj: any, keepTflTypes?: boolean) => any;