UNPKG

@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.

14 lines (13 loc) 352 B
export type Tag = string; export type TagPattern = string; export type Tags = Tag[]; export interface StorageEntryOptions { tags?: Tags; } export interface StorageEntry<T> { readonly data: T; readonly tags: Tags; } type StorageKeyBuilderInput = unknown; export type StorageKeyBuilder = (input: StorageKeyBuilderInput) => string; export {};