UNPKG

kotlineum

Version:

React implementation of Kotlin patterns and features, including Flow patterns (SharedFlow and StateFlow) and MVVM architecture with ViewModels

11 lines (10 loc) 246 B
export type Callback<T> = (data: T) => void; export interface Subscriber<T> { uniqueId: string; callback: Callback<T>; } export interface ViewModelState<T> { data: T | null; loading: boolean; error: string | null; }