return {};
}
const asString = (value: unknown): string | undefined => typeof value === 'string' ? value : undefined;
const asBoolean = (value: unknown): boolean | undefined => typeof value === 'boolean' ? value : undefined;
const asStringRecord = (value: unknown): Record<string, string> | undefined => {
if (!value || typeof value !== 'object' || Array.isArray(value)) {
return undefined;
}