UNPKG

@speckle/objectloader2

Version:

This is an updated objectloader for the Speckle viewer written in typescript

19 lines (16 loc) 455 B
import Queue from '../queues/queue.js' import { Item } from '../types/types.js' export interface Downloader extends Queue<string> { initialize(params: { results: Queue<Item> total: number maxDownloadBatchWait?: number }): void downloadSingle(): Promise<Item> disposeAsync(): Promise<void> } export interface Database { getAll(ids: string[]): Promise<(Item | undefined)[]> putAll(batch: Item[]): Promise<void> dispose(): void }