From 28f09161c66ce60affe68ced74c40861d0aeb475 Mon Sep 17 00:00:00 2001 From: Robert Knight Date: Mon, 15 Jan 2024 11:14:04 +0000 Subject: [PATCH] Reformat code with Prettier 3.2.2 --- src/annotator/guest.ts | 11 ++++------- src/sidebar/store/create-store.ts | 12 ++++-------- 2 files changed, 8 insertions(+), 15 deletions(-) diff --git a/src/annotator/guest.ts b/src/annotator/guest.ts index 65e4ef76a34..0730343c44e 100644 --- a/src/annotator/guest.ts +++ b/src/annotator/guest.ts @@ -578,15 +578,12 @@ export class Guest extends TinyEmitter implements Annotator, Destroyable { }, ); - this._sidebarRPC.on( - 'showContentInfo', - (info: ContentInfoConfig) => this._integration.showContentInfo?.(info), + this._sidebarRPC.on('showContentInfo', (info: ContentInfoConfig) => + this._integration.showContentInfo?.(info), ); - this._sidebarRPC.on( - 'navigateToSegment', - (annotation: AnnotationData) => - this._integration.navigateToSegment?.(annotation), + this._sidebarRPC.on('navigateToSegment', (annotation: AnnotationData) => + this._integration.navigateToSegment?.(annotation), ); // Connect to sidebar and send document info/URIs to it. diff --git a/src/sidebar/store/create-store.ts b/src/sidebar/store/create-store.ts index 6cb994c8edf..ca6c93a23c7 100644 --- a/src/sidebar/store/create-store.ts +++ b/src/sidebar/store/create-store.ts @@ -44,14 +44,10 @@ type Module< * * `StoreFromModule & StoreFromModule` */ -type StoreFromModule = T extends Module< - any, - infer Actions, - infer Selectors, - infer RootSelectors -> - ? Store - : never; +type StoreFromModule = + T extends Module + ? Store + : never; /** * Redux store augmented with selector methods to query specific state and