Skip to content

Commit

Permalink
feat: fix typing for subscriptions
Browse files Browse the repository at this point in the history
  • Loading branch information
lennybakkalian committed Nov 24, 2024
1 parent e6b687b commit 98c0a01
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion projects/ngx-trpc/src/lib/rxjs-proxy/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,4 @@ export interface TRPCSubscriptionObserver<TValue, TError> {
onComplete: () => void;
}

export type YieldType<T> = T extends AsyncGenerator<infer Y> ? Y : never;
export type YieldType<T> = inferAsyncIterableYield<T>;

0 comments on commit 98c0a01

Please sign in to comment.