You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
import z from "zod";
|
|
|
|
export interface SearchOptions {
|
|
pageParam?: string;
|
|
type?: SearchType;
|
|
}
|
|
|
|
export const searchTypes = ["video", "playlist", "channel", "all"] as const;
|
|
|
|
export const SearchTypeModel = z.enum(searchTypes);
|
|
|
|
export type SearchType = z.infer<typeof SearchTypeModel>;
|