Skip to content

Commit 1dce896

Browse files
committed
Merge branch 'main' into model-schema-transforming
2 parents f6a2bb2 + 4d6b88d commit 1dce896

2 files changed

Lines changed: 2 additions & 4 deletions

File tree

‎lib/parse.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ function resume(
176176
return {
177177
ok: true,
178178
route: segment.id,
179-
model: phase.transforms?.length ? modeled.value : binding.model,
179+
model: modeled.value,
180180

181181
resume(result) {
182182
if (!result.ok) {

‎lib/pipeline.ts‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,6 @@ type ModelTransformOutput<F> = F extends ModelSchema<infer Output>
118118
: F extends (...args: never[]) => infer Output
119119
? Output extends Record<string, unknown> ? Output : {}
120120
: never;
121-
122121
export type Extension<E extends readonly Unary[]> =
123122
& Element<Batch<E>>
124123
& (E extends readonly AnyElement[] ? GenericExtension<E>
@@ -272,7 +271,6 @@ interface AddModelTransform<
272271
readonly transform: F;
273272
readonly elements: E;
274273
}
275-
276274
interface Batch<E extends readonly Unary[]> {
277275
readonly type: "batch";
278276
readonly elements: E;
@@ -394,7 +392,7 @@ type TakeStatic<
394392
Routes extends readonly AnyRoute[] = readonly [],
395393
Methods extends Method = never,
396394
Count extends readonly unknown[] = readonly [],
397-
> = Count["length"] extends 20
395+
> = Count["length"] extends 40
398396
? readonly [MergeFields<Fields>, Routes, Methods, E]
399397
: E extends readonly [
400398
infer Head extends AnyElement,

0 commit comments

Comments
 (0)