diff --git a/packages/generate/src/syntax/select.ts b/packages/generate/src/syntax/select.ts index 9d4cfd099..bc2636e5f 100644 --- a/packages/generate/src/syntax/select.ts +++ b/packages/generate/src/syntax/select.ts @@ -382,16 +382,14 @@ export type ComputeSelectCardinality< export function is< Expr extends ObjectTypeExpression, - Shape extends objectTypeToSelectShape ->( - expr: Expr, - shape: Shape -): { - [k in Exclude< - keyof Shape, - SelectModifierNames | "id" - >]: $expr_PolyShapeElement>; -} { + Shape extends objectTypeToSelectShape, + ReturnT extends { + [k in Exclude< + keyof Shape, + SelectModifierNames | "id" + >]: $expr_PolyShapeElement>; + } +>(expr: Expr, shape: Shape): ReturnT { const mappedShape: any = {}; for (const [key, value] of Object.entries(shape)) { if (key === "id") continue;