build error fix

This commit is contained in:
makearmy 2025-10-02 21:04:10 -04:00
parent a5e6174242
commit 52a3d35245

View file

@ -87,7 +87,7 @@ function folderIdFor(
kind: "photo" | "screen" | "notes"
): string | undefined {
const E = process.env;
const map = {
const map: Record<Target, { photo?: string; screen?: string; notes?: string }> = {
settings_co2gal: {
photo: E.DX_FOLDER_GALVO_PHOTOS,
screen: E.DX_FOLDER_GALVO_SCREENS,
@ -108,8 +108,7 @@ function folderIdFor(
screen: E.DX_FOLDER_UV_SCREENS,
notes: E.DX_FOLDER_UV_NOTES,
},
} as const;
// @ts-expect-error narrow map index
};
return map[target]?.[kind];
}