This repository was archived by the owner on Oct 25, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +6
-5
lines changed Expand file tree Collapse file tree 3 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ import { SmallCard } from '../SmallCard'
13
13
import { ShrinkCard } from '../ShrinkCard'
14
14
import { NodeTimeBadge } from '../NodeTimeBadge'
15
15
16
- import { TNodeSliceIterator } from 'smuggler-api'
16
+ import { INodeIterator } from 'smuggler-api'
17
17
import type { TNode , StorageApi } from 'smuggler-api'
18
18
19
19
import { log , isAbortError , errorise } from 'armoury'
@@ -71,7 +71,7 @@ export const SearchGrid = ({
71
71
storage : StorageApi
72
72
} > ) => {
73
73
const [ search , setUpSearch ] = useState < {
74
- iter : TNodeSliceIterator
74
+ iter : INodeIterator
75
75
beagle : Beagle
76
76
} | null > ( null )
77
77
useEffect ( ( ) => {
@@ -111,7 +111,7 @@ const SearchGridScroll = ({
111
111
storage,
112
112
} : React . PropsWithChildren < {
113
113
beagle : Beagle
114
- iter : TNodeSliceIterator
114
+ iter : INodeIterator
115
115
onCardClick ?: ( arg0 : TNode ) => void
116
116
portable ?: boolean
117
117
className ?: string
Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ export interface INodeIterator {
5
5
next : ( ) => Promise < Optional < TNode > >
6
6
total : ( ) => number
7
7
exhausted : ( ) => boolean
8
+ abort ( ) : void
8
9
}
9
10
10
11
export type GetNodesSliceFn = ( {
Original file line number Diff line number Diff line change 1
1
import { MimeType } from 'armoury'
2
2
import type { Optional } from 'armoury'
3
- import { TNodeSliceIterator } from './node_slice_iterator'
3
+ import { INodeIterator } from './node_slice_iterator'
4
4
import {
5
5
TNode ,
6
6
NodePatchRequest ,
@@ -82,7 +82,7 @@ export type StorageApi = {
82
82
args : CreateNodeArgs ,
83
83
signal ?: AbortSignal
84
84
) => Promise < NewNodeResponse >
85
- slice : ( args : GetNodeSliceArgs ) => TNodeSliceIterator
85
+ slice : ( args : GetNodeSliceArgs ) => INodeIterator
86
86
delete : ( {
87
87
nid,
88
88
signal,
You can’t perform that action at this time.
0 commit comments