Skip to content

Commit

Permalink
Remove comment so it doesn't get added to exports
Browse files Browse the repository at this point in the history
  • Loading branch information
benjie committed Apr 30, 2024
1 parent 3957edb commit 9ba7af2
Showing 1 changed file with 11 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -953,20 +953,17 @@ export const PgPolymorphismPlugin: GraphileConfig.Plugin = {
const $pkValues = lambda(
$handlerMatches,
(handlerMatches) => {
const match =
// TS knows this in my editor, but not in `tsc` for
// some reason.
(
handlerMatches as DataFromObjectSteps<{
match: LambdaStep<
{
[codecName: string]: any;
} | null,
boolean
>;
pks: ListStep<any[]>;
}>[]
).find((pk) => pk.match);
const match = (
handlerMatches as DataFromObjectSteps<{
match: LambdaStep<
{
[codecName: string]: any;
} | null,
boolean
>;
pks: ListStep<any[]>;
}>[]
).find((pk) => pk.match);
return match?.pks;
},
true,
Expand Down

0 comments on commit 9ba7af2

Please sign in to comment.