* Enforces explicit type imports * Upgrades typescript-eslint * Upgrades eslint related dependencies * Update config * Sync packages mismatches * Syncs prettier version * Linting * Relocks node version * Fixes * Locks @vitejs/plugin-react to 1.3.2 * Linting
13 lines
382 B
TypeScript
13 lines
382 B
TypeScript
import type { z } from "zod";
|
|
|
|
import type { zodFieldView, zodField, zodRouterField, zodRouterFieldView } from "../zod";
|
|
|
|
export default function isRouterLinkedField(
|
|
field: z.infer<typeof zodFieldView> | z.infer<typeof zodField>
|
|
): field is z.infer<typeof zodRouterField> | z.infer<typeof zodRouterFieldView> {
|
|
if ("routerId" in field) {
|
|
return true;
|
|
}
|
|
return false;
|
|
}
|