(value?: string)
| 81 | .filter(Boolean) ?? []; |
| 82 | |
| 83 | export const getSearchPostTypesFromUrl = (value?: string): PostType[] => |
| 84 | getSearchListFromUrl(value) |
| 85 | .map((slug) => urlSlugToSearchPostType[slug]) |
| 86 | .filter((postType): postType is PostType => !!postType); |
| 87 | |
| 88 | export const getSearchPostTypesQueryParam = ( |
| 89 | postTypes: string[], |
no test coverage detected