Skip to content

Commit

Permalink
Fix lost boolean literal in e.is shape
Browse files Browse the repository at this point in the history
  • Loading branch information
scotttrinh committed Apr 3, 2024
1 parent f519aeb commit 848e624
Showing 1 changed file with 8 additions and 10 deletions.
18 changes: 8 additions & 10 deletions packages/generate/src/syntax/select.ts
Expand Up @@ -382,16 +382,14 @@ export type ComputeSelectCardinality<

export function is<
Expr extends ObjectTypeExpression,
Shape extends objectTypeToSelectShape<Expr["__element__"]>
>(
expr: Expr,
shape: Shape
): {
[k in Exclude<
keyof Shape,
SelectModifierNames | "id"
>]: $expr_PolyShapeElement<Expr, normaliseElement<Shape[k]>>;
} {
Shape extends objectTypeToSelectShape<Expr["__element__"]>,
ReturnT extends {
[k in Exclude<
keyof Shape,
SelectModifierNames | "id"
>]: $expr_PolyShapeElement<Expr, normaliseElement<Shape[k]>>;
}
>(expr: Expr, shape: Shape): ReturnT {
const mappedShape: any = {};
for (const [key, value] of Object.entries(shape)) {
if (key === "id") continue;
Expand Down

0 comments on commit 848e624

Please sign in to comment.