2025-02-23
2025-02-24
This commit is contained in:
parent
2212f4fc14
commit
0f52ff0cef
40 changed files with 846 additions and 75 deletions
8
src/libs/search/schemas.ts
Normal file
8
src/libs/search/schemas.ts
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
import { MEDIA_TYPES } from "@/db/schemas/constants";
|
||||
import { Schema } from "effect";
|
||||
|
||||
export class SearchPageQueryParams extends Schema.Class<SearchPageQueryParams>("SearchPageQueryParams")({
|
||||
query: Schema.NonEmptyString,
|
||||
type: Schema.Enums(MEDIA_TYPES),
|
||||
year: Schema.String,
|
||||
}) {}
|
||||
Loading…
Add table
Add a link
Reference in a new issue