Update src/types/format.ts
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
sora-ext 2025-02-24 17:31:15 +01:00
parent c2d1858e68
commit a13b3acbe5

View File

@ -14,7 +14,7 @@ declare global {
interface leg { interface leg {
title: string title: string
step_title: string[] day_title: string[]
date_range: [Date, Date] | null date_range: [Date, Date] | null
map: map map: map
travel: unknown[] travel: unknown[]
@ -27,6 +27,7 @@ declare global {
} }
interface journey { interface journey {
fmt_ver: number
title: string title: string
name: string | null name: string | null
main: leg[] main: leg[]
@ -34,6 +35,7 @@ declare global {
} }
const journey_template: journey = { const journey_template: journey = {
fmt_ver: 1,
title: "New Journey", title: "New Journey",
name: null, name: null,
main: [], main: [],
@ -41,7 +43,7 @@ const journey_template: journey = {
const leg_template: leg = { const leg_template: leg = {
title: "New Leg", title: "New Leg",
step_title: [], day_title: [],
map: { zoom: 2, center: { lng: 0, lat: 0 } }, map: { zoom: 2, center: { lng: 0, lat: 0 } },
travel: [], travel: [],
hotel: null, hotel: null,