Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
coopwire-hypothesis
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
孙灵跃 Leon Sun
coopwire-hypothesis
Commits
28f09161
Commit
28f09161
authored
Jan 15, 2024
by
Robert Knight
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Reformat code with Prettier 3.2.2
parent
de47ed96
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
15 deletions
+8
-15
guest.ts
src/annotator/guest.ts
+4
-7
create-store.ts
src/sidebar/store/create-store.ts
+4
-8
No files found.
src/annotator/guest.ts
View file @
28f09161
...
...
@@ -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.
...
...
src/sidebar/store/create-store.ts
View file @
28f09161
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment