Skip to content

Commit

Permalink
feat(headless): update after pr comment
Browse files Browse the repository at this point in the history
  • Loading branch information
djabarovgeorge committed Feb 1, 2024
1 parent 563190c commit 79cf7e9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
7 changes: 3 additions & 4 deletions packages/headless/src/lib/headless.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ import {
IUpdateUserPreferencesVariables,
IUpdateUserGlobalPreferencesVariables,
UpdateResult,
EmptyObject,
} from './types';

export const NOTIFICATION_CENTER_TOKEN_KEY = 'nc_token';
Expand Down Expand Up @@ -815,15 +814,15 @@ export class HeadlessService {
}: {
messageIds: string[];
listener: (
result: UpdateResult<EmptyObject, unknown, { messageIds: string[] }>
result: UpdateResult<void, unknown, { messageIds: string[] }>
) => void;
onSuccess?: (obj: EmptyObject) => void;
onSuccess?: (obj: void) => void;
onError?: (error: unknown) => void;
}) {
this.assertSessionInitialized();

const { result, unsubscribe } = this.queryService.subscribeMutation<
EmptyObject,
void,
unknown,
{ messageIds: string[] }
>({
Expand Down
1 change: 0 additions & 1 deletion packages/headless/src/lib/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,4 +77,3 @@ export type UpdateResult<

export type IMessageId = string | string[];
export type IFeedId = string | string[];
export type EmptyObject = Record<string, never>;

0 comments on commit 79cf7e9

Please sign in to comment.