Commit 28f09161 authored by Robert Knight's avatar Robert Knight

Reformat code with Prettier 3.2.2

parent de47ed96
...@@ -578,15 +578,12 @@ export class Guest extends TinyEmitter implements Annotator, Destroyable { ...@@ -578,15 +578,12 @@ export class Guest extends TinyEmitter implements Annotator, Destroyable {
}, },
); );
this._sidebarRPC.on( this._sidebarRPC.on('showContentInfo', (info: ContentInfoConfig) =>
'showContentInfo', this._integration.showContentInfo?.(info),
(info: ContentInfoConfig) => this._integration.showContentInfo?.(info),
); );
this._sidebarRPC.on( this._sidebarRPC.on('navigateToSegment', (annotation: AnnotationData) =>
'navigateToSegment', this._integration.navigateToSegment?.(annotation),
(annotation: AnnotationData) =>
this._integration.navigateToSegment?.(annotation),
); );
// Connect to sidebar and send document info/URIs to it. // Connect to sidebar and send document info/URIs to it.
......
...@@ -44,14 +44,10 @@ type Module< ...@@ -44,14 +44,10 @@ type Module<
* *
* `StoreFromModule<firstModule> & StoreFromModule<secondModule>` * `StoreFromModule<firstModule> & StoreFromModule<secondModule>`
*/ */
type StoreFromModule<T> = T extends Module< type StoreFromModule<T> =
any, T extends Module<any, infer Actions, infer Selectors, infer RootSelectors>
infer Actions, ? Store<Actions, Selectors, RootSelectors>
infer Selectors, : never;
infer RootSelectors
>
? Store<Actions, Selectors, RootSelectors>
: never;
/** /**
* Redux store augmented with selector methods to query specific state and * Redux store augmented with selector methods to query specific state and
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment