mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-05-11 13:15:18 -05:00
* new location * free agents modal use trpc * extract components from FreeAgentsPage * trpc for likes * unify naming * extract filters component * top 500 filter * plus server membeship filter * weapon filter * all filters implemented * reset filters * filters final look * filters from query params * fetch fa posts statically
16 lines
461 B
TypeScript
16 lines
461 B
TypeScript
import { Playstyle } from ".prisma/client";
|
|
import { FreeAgentRegion } from "app/freeagents/hooks";
|
|
|
|
export function isFreeAgentPlaystyle(value: unknown): value is Playstyle {
|
|
return (
|
|
typeof value === "string" &&
|
|
["FRONTLINE", "MIDLINE", "BACKLINE"].includes(value)
|
|
);
|
|
}
|
|
|
|
export function isFreeAgentRegion(value: unknown): value is FreeAgentRegion {
|
|
return (
|
|
typeof value === "string" && ["EUROPE", "AMERICAS", "ASIA"].includes(value)
|
|
);
|
|
}
|