Comparing version 3.12.11 to 3.12.12
@@ -383,3 +383,6 @@ import type { Context } from './context'; | ||
[K in Param]: string; | ||
} : {}; | ||
} : never; | ||
type FlattenIfIntersect<T> = T extends infer O ? { | ||
[K in keyof O]: O[K]; | ||
} : never; | ||
export type MergeSchemaPath<OrigSchema extends Schema, SubPath extends string> = { | ||
@@ -392,7 +395,7 @@ [P in keyof OrigSchema as MergePath<SubPath, P & string>]: { | ||
input: Input extends { | ||
param: infer Params; | ||
} ? { | ||
param: Params & ExtractParams<SubPath>; | ||
} : RemoveBlankRecord<ExtractParams<SubPath>> extends never ? Input : Input & { | ||
param: infer _; | ||
} ? ExtractParams<SubPath> extends never ? Input : FlattenIfIntersect<Input & { | ||
param: ExtractParams<SubPath>; | ||
}> : RemoveBlankRecord<ExtractParams<SubPath>> extends never ? Input : Input & { | ||
param: ExtractParams<SubPath>; | ||
}; | ||
@@ -403,3 +406,5 @@ output: Output; | ||
}; | ||
export type AddParam<I, P extends string> = ParamKeys<P> extends never ? I : I & { | ||
export type AddParam<I, P extends string> = ParamKeys<P> extends never ? I : I extends { | ||
param: infer _; | ||
} ? I : I & { | ||
param: UnionToIntersection<ParamKeyToRecord<ParamKeys<P>>>; | ||
@@ -406,0 +411,0 @@ }; |
{ | ||
"name": "hono", | ||
"version": "3.12.11", | ||
"version": "3.12.12", | ||
"description": "Ultrafast web framework for the Edges", | ||
@@ -5,0 +5,0 @@ "main": "dist/cjs/index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
566043
15163