Skip to content

Commit

Permalink
Broaden types on pgSelectSingleFromRecord (#2191)
Browse files Browse the repository at this point in the history
  • Loading branch information
benjie authored Oct 1, 2024
2 parents f6d504e + 1eac03e commit 3f64cc8
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
6 changes: 6 additions & 0 deletions .changeset/large-cameras-listen.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"postgraphile": patch
"@dataplan/pg": patch
---

Broaden types around `pgSelectSingleFromRecord`
6 changes: 5 additions & 1 deletion grafast/dataplan-pg/src/steps/pgSelectSingle.ts
Original file line number Diff line number Diff line change
Expand Up @@ -625,7 +625,11 @@ export function pgSelectFromRecord<
>,
>(
resource: TResource,
$record: PgClassExpressionStep<GetPgResourceCodec<TResource>, TResource>,
$record:
| PgClassExpressionStep<GetPgResourceCodec<TResource>, TResource>
| ExecutableStep<{
[Attr in keyof TResource["codec"]["attributes"]]: ExecutableStep;
}>,
): PgSelectStep<TResource> {
return new PgSelectStep<TResource>({
resource: resource,
Expand Down

0 comments on commit 3f64cc8

Please sign in to comment.