Skip to content
This repository has been archived by the owner on Jul 20, 2023. It is now read-only.

Commit

Permalink
Fix codegen reference to selector for single interface implementations
Browse files Browse the repository at this point in the history
  • Loading branch information
timkendall committed Dec 8, 2021
1 parent 5c974a7 commit fde430d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion codegen/src/transforms/selectors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ const printConditionalSelectorArg = (types: string[]) => {
const [first, ...rest] = types;

if (rest.length === 0) {
return `${first}Selector`;
return `I${first}Selector`;
} else {
return types
.map((t) => `F extends "${t}" ? I${t}Selector : `)
Expand Down

1 comment on commit fde430d

@vercel
Copy link

@vercel vercel bot commented on fde430d Dec 8, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

Please sign in to comment.