mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-11-21 11:36:05 +00:00
fix(journey): give the patched column shapes an index signature presenceSet accepts
presenceSet takes a Record<string, unknown>; an interface has no implicit index signature, so the two column shapes are type aliases instead.
This commit is contained in:
@@ -30,7 +30,7 @@ export type JourneyEntryUpdateInput = Partial<{
|
||||
}>;
|
||||
|
||||
/** The columns an update writes, as they are stored. */
|
||||
interface JourneyEntryColumns {
|
||||
type JourneyEntryColumns = {
|
||||
type: string;
|
||||
title: string | null;
|
||||
story: string | null;
|
||||
@@ -50,7 +50,7 @@ interface JourneyEntryColumns {
|
||||
is_draft: number;
|
||||
country_code: string | null;
|
||||
updated_at: number;
|
||||
}
|
||||
};
|
||||
|
||||
/**
|
||||
* JG78: the columns an update of `entry` with `data` writes, each resolved to
|
||||
|
||||
@@ -25,7 +25,7 @@ export type JourneySettingsInput = Partial<{
|
||||
}>;
|
||||
|
||||
/** The columns an update writes, as they are stored. */
|
||||
interface JourneySettingsColumns {
|
||||
type JourneySettingsColumns = {
|
||||
title: string;
|
||||
subtitle: string | null;
|
||||
cover_gradient: string | null;
|
||||
@@ -38,7 +38,7 @@ interface JourneySettingsColumns {
|
||||
show_mood: number;
|
||||
show_weather: number;
|
||||
auto_prepare_recordings: number;
|
||||
}
|
||||
};
|
||||
|
||||
const ALLOWED_STATUSES: readonly string[] = ['draft', 'active', 'completed', 'archived'];
|
||||
// null hands the state back to the trip dates (#762).
|
||||
|
||||
Reference in New Issue
Block a user