UNPKG

@prefecthq/prefect-ui-library

Version:

This library is the Vue and Typescript component library for [Prefect 2](https://github.com/PrefectHQ/prefect) and [Prefect Cloud 2](https://www.prefect.io/cloud/). _The components and utilities in this project are not meant to be used independently_.

17 lines (16 loc) 566 B
import { StorageItem } from '../../services/storage/StorageItem'; export type Unsubscribe = () => void; export declare class Storage<T extends StorageItem> { private readonly subscriptions; private readonly store; add(value: T): void; remove(id: string): void; get(id: string): T | undefined; addAll(values: T[]): void; removeAll(ids: string[]): void; getAll(ids: string[]): T[]; subscribe(id: string): Unsubscribe; unsubscribe(id: string, subscriptionId: string): void; private getSubscription; private isNewValue; }