* WIP * Fix all TS errors * Move to using isRouter everywhere * wip * Add Router Picker and fix TS issues * Fix tests and add option to connect during duplication * Misc changes * Fixes * Fixes * Fix TS errors * Disable certain options in Router * Fix connected Form fields not updating * Some fixes * reert shell.tsx * Disable already used router instead of removing it * Import prisma from correct place * Simplify loop using Object.entries * SimpliAdd playwright test and fix issues found
12 lines
244 B
TypeScript
12 lines
244 B
TypeScript
import { z } from "zod";
|
|
|
|
import { zodRoute } from "../zod";
|
|
import isRouter from "./isRouter";
|
|
|
|
export const isFallbackRoute = (route: z.infer<typeof zodRoute>) => {
|
|
if (isRouter(route)) {
|
|
return false;
|
|
}
|
|
return route.isFallback;
|
|
};
|