Module

x/hono/types.ts>MergeSchemaPath

Web Framework built on Web Standards
Extremely Popular
Go to Latest
type alias MergeSchemaPath
import { type MergeSchemaPath } from "https://dotland.deno.dev/x/hono@v4.2.6/types.ts";

Type Parameters

OrigSchema extends Schema
SubPath extends string
definition: Prettify<[P in keyof OrigSchemain keyof MergePath<SubPath, P & string>]: [M in keyof OrigSchema[P]]: OrigSchema[P][M] extends { input: infer Input; output: infer Output; } ? { input: Input extends { param: infer _; } ? ExtractParams<SubPath> extends never ? Input : FlattenIfIntersect<Input & { param: [K in keyof ExtractParams<SubPath>in keyof K extends `${infer Prefix}{${infer _}}` ? Prefix : K]: string; }> : RemoveBlankRecord<ExtractParams<SubPath>> extends never ? Input : Input & { param: [K in keyof ExtractParams<SubPath>in keyof K extends `${infer Prefix}{${infer _}}` ? Prefix : K]: string; }; output: Output; } : never>