build error fix
This commit is contained in:
parent
a5e6174242
commit
52a3d35245
1 changed files with 2 additions and 3 deletions
|
|
@ -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];
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue