Files
movie-advisor/lib/showType.ts
T

3 lines
127 B
TypeScript

export const parseShowType = (value: string | string[] | null | undefined): Show['type'] =>
value === 'tv' ? 'tv' : 'movie';