444
const args = Array.isArray(candidate['args']) ? candidate['args'].filter((value): value is string => typeof value === 'string') : undefined;
445
const env = candidate['env'] && typeof candidate['env'] === 'object'
446
>
? Object.fromEntries(Object.entries(candidate['env'] as Record<string, unknown>)
pluginParsers.ts
447
>
.filter(([, value]) => typeof value === 'string' || typeof value === 'number' || value === null)
448
>
.map(([key, value]) => [key, value as string | number | null]))
449
: undefined;
450
const envFile = typeof candidate['envFile'] === 'string' ? candidate['envFile'] : undefined;