Function: localizedProp()
function localizedProp(props, key):
| LocalizedString
| undefined;
Defined in: utils.ts:48
Reads a prop that the schema types as LocalizedString. props is an open
Record<string, unknown> on purpose (vendors may add keys), so the narrowing
happens here once instead of at every call site.
Parameters
| Parameter | Type |
|---|---|
props | Record<string, unknown> | undefined |
key | string |
Returns
| LocalizedString
| undefined