Skip to content
This repository was archived by the owner on Oct 25, 2023. It is now read-only.

Commit f7daeca

Browse files
committed
TNodeSliceIterator -> INoteIterator
1 parent 94d411d commit f7daeca

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

elementary/src/grid/SearchGrid.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import { SmallCard } from '../SmallCard'
1313
import { ShrinkCard } from '../ShrinkCard'
1414
import { NodeTimeBadge } from '../NodeTimeBadge'
1515

16-
import { TNodeSliceIterator } from 'smuggler-api'
16+
import { INodeIterator } from 'smuggler-api'
1717
import type { TNode, StorageApi } from 'smuggler-api'
1818

1919
import { log, isAbortError, errorise } from 'armoury'
@@ -71,7 +71,7 @@ export const SearchGrid = ({
7171
storage: StorageApi
7272
}>) => {
7373
const [search, setUpSearch] = useState<{
74-
iter: TNodeSliceIterator
74+
iter: INodeIterator
7575
beagle: Beagle
7676
} | null>(null)
7777
useEffect(() => {
@@ -111,7 +111,7 @@ const SearchGridScroll = ({
111111
storage,
112112
}: React.PropsWithChildren<{
113113
beagle: Beagle
114-
iter: TNodeSliceIterator
114+
iter: INodeIterator
115115
onCardClick?: (arg0: TNode) => void
116116
portable?: boolean
117117
className?: string

smuggler-api/src/node_slice_iterator.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ export interface INodeIterator {
55
next: () => Promise<Optional<TNode>>
66
total: () => number
77
exhausted: () => boolean
8+
abort(): void
89
}
910

1011
export type GetNodesSliceFn = ({

smuggler-api/src/storage_api.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { MimeType } from 'armoury'
22
import type { Optional } from 'armoury'
3-
import { TNodeSliceIterator } from './node_slice_iterator'
3+
import { INodeIterator } from './node_slice_iterator'
44
import {
55
TNode,
66
NodePatchRequest,
@@ -82,7 +82,7 @@ export type StorageApi = {
8282
args: CreateNodeArgs,
8383
signal?: AbortSignal
8484
) => Promise<NewNodeResponse>
85-
slice: (args: GetNodeSliceArgs) => TNodeSliceIterator
85+
slice: (args: GetNodeSliceArgs) => INodeIterator
8686
delete: ({
8787
nid,
8888
signal,

0 commit comments

Comments
 (0)