const makeParseMapOrValue: <T>( map: Record<string, T>, def: string, ) => (s?: string | T) => T
packages / parse / src / parse.ts