Skip to content

Commit

Permalink
fix(types): subscription forwarded should receive a string always closes
Browse files Browse the repository at this point in the history
  • Loading branch information
logaretm committed May 18, 2024
1 parent 88a6019 commit 8b02c12
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/cool-teachers-sleep.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'villus': patch
---

fix(types): subscription forwarded should receive a string always
2 changes: 1 addition & 1 deletion packages/villus/src/handleSubscriptions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { normalizeQuery } from '../../shared/src/utils';
import { ClientPlugin, ClientPluginOperation, ObservableLike, StandardOperationResult, MaybePromise } from './types';

export type SubscriptionForwarder<TData = any> = (
operation: ClientPluginOperation & { query: string },
operation: Omit<ClientPluginOperation, 'query'> & { query: string },
) => MaybePromise<ObservableLike<StandardOperationResult<TData>>>;

export function handleSubscriptions(forwarder: SubscriptionForwarder): ClientPlugin {
Expand Down

0 comments on commit 8b02c12

Please sign in to comment.