2
0
Files

12 lines
254 B
TypeScript
Raw Permalink Normal View History

2024-08-09 00:39:27 +02:00
import type { z } from "zod";
import type { zodRoute } from "../zod";
import isRouter from "./isRouter";
export const isFallbackRoute = (route: z.infer<typeof zodRoute>) => {
if (isRouter(route)) {
return false;
}
return route.isFallback;
};