Skip to content

Commit

Permalink
Reformat code with Prettier 3.2.2
Browse files Browse the repository at this point in the history
  • Loading branch information
robertknight committed Jan 15, 2024
1 parent de47ed9 commit 28f0916
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 15 deletions.
11 changes: 4 additions & 7 deletions src/annotator/guest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
12 changes: 4 additions & 8 deletions src/sidebar/store/create-store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,14 +44,10 @@ type Module<
*
* `StoreFromModule<firstModule> & StoreFromModule<secondModule>`
*/
type StoreFromModule<T> = T extends Module<
any,
infer Actions,
infer Selectors,
infer RootSelectors
>
? Store<Actions, Selectors, RootSelectors>
: never;
type StoreFromModule<T> =
T extends Module<any, infer Actions, infer Selectors, infer RootSelectors>
? Store<Actions, Selectors, RootSelectors>
: never;

/**
* Redux store augmented with selector methods to query specific state and
Expand Down

0 comments on commit 28f0916

Please sign in to comment.