@mittwald/react-use-promise
Version:
Simple and declarative use of Promises in your React components. Observe their state and refresh them in various advanced ways.
12 lines (11 loc) • 319 B
TypeScript
import type { Tags, TagsInput } from "./Tags";
export interface StorageEntryOptions {
tags?: TagsInput;
}
export interface StorageEntry<T> {
readonly data: T;
readonly tags: Tags;
}
type StorageKeyBuilderInput = unknown;
export type StorageKeyBuilder = (input: StorageKeyBuilderInput) => string;
export {};