@router-cli/react-router-dev
Version:
File based routing cli for react-router-dom.
54 lines (53 loc) • 2.3 kB
TypeScript
import { z } from "zod";
export declare const configSchema: z.ZodObject<{
sourceAlias: z.ZodOptional<z.ZodString>;
type: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"browser">, z.ZodLiteral<"memory">, z.ZodLiteral<"hash">]>>;
hiddenDirectories: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
formatter: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"prettier">, z.ZodLiteral<"eslint">]>>;
source: z.ZodDefault<z.ZodString>;
output: z.ZodDefault<z.ZodString>;
}, "strip", z.ZodTypeAny, {
hiddenDirectories: string[];
source: string;
output: string;
sourceAlias?: string | undefined;
type?: "browser" | "memory" | "hash" | undefined;
formatter?: "prettier" | "eslint" | undefined;
}, {
sourceAlias?: string | undefined;
type?: "browser" | "memory" | "hash" | undefined;
hiddenDirectories?: string[] | undefined;
formatter?: "prettier" | "eslint" | undefined;
source?: string | undefined;
output?: string | undefined;
}>;
export declare const cliOptionsSchema: z.ZodObject<{
sourceAlias: z.ZodOptional<z.ZodString>;
type: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"browser">, z.ZodLiteral<"memory">, z.ZodLiteral<"hash">]>>;
hiddenDirectories: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
formatter: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"prettier">, z.ZodLiteral<"eslint">]>>;
config: z.ZodOptional<z.ZodString>;
verbose: z.ZodDefault<z.ZodBoolean>;
source: z.ZodOptional<z.ZodString>;
output: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
hiddenDirectories: string[];
verbose: boolean;
sourceAlias?: string | undefined;
type?: "browser" | "memory" | "hash" | undefined;
formatter?: "prettier" | "eslint" | undefined;
config?: string | undefined;
source?: string | undefined;
output?: string | undefined;
}, {
sourceAlias?: string | undefined;
type?: "browser" | "memory" | "hash" | undefined;
hiddenDirectories?: string[] | undefined;
formatter?: "prettier" | "eslint" | undefined;
config?: string | undefined;
verbose?: boolean | undefined;
source?: string | undefined;
output?: string | undefined;
}>;
export type RouterCliConfig = z.TypeOf<typeof configSchema>;
export type RouterCliOptions = z.TypeOf<typeof cliOptionsSchema>;