Skip to content

Commit

Permalink
V2: Correct type inference for ConnectError#findDetails (#1188)
Browse files Browse the repository at this point in the history
  • Loading branch information
bhollis authored Aug 28, 2024
1 parent b92b370 commit ef48f10
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/connect/src/connect-error.ts
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ export class ConnectError extends Error {
* omitted from the list.
*/
findDetails<Desc extends DescMessage>(
desc: DescMessage,
desc: Desc,
): MessageShape<Desc>[];
findDetails(registry: Registry): Message[];
findDetails(typeOrRegistry: DescMessage | Registry): Message[] {
Expand Down

0 comments on commit ef48f10

Please sign in to comment.