Fix TypeScript return type in import-tuxedo-stops.ts
Deploy to route.crispygoat.com / deploy (push) Has been cancelled
Deploy to route.crispygoat.com / deploy (push) Has been cancelled
Add missing 'locations' property to loadStops() return type.
This commit is contained in:
@@ -76,7 +76,7 @@ function slugify(s: string): string {
|
|||||||
return out.replace(/^-+|-+$/g, "");
|
return out.replace(/^-+|-+$/g, "");
|
||||||
}
|
}
|
||||||
|
|
||||||
async function loadStops(xlsxPath: string): Promise<{ stops: ParsedStop[]; skipped: Record<string, number>; dirCount: number }> {
|
async function loadStops(xlsxPath: string): Promise<{ stops: ParsedStop[]; skipped: Record<string, number>; dirCount: number; locations: ParsedLocation[] }> {
|
||||||
const wb = new ExcelJS.Workbook();
|
const wb = new ExcelJS.Workbook();
|
||||||
await wb.xlsx.readFile(xlsxPath);
|
await wb.xlsx.readFile(xlsxPath);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user