UNPKG

vuex-easy-firestore

Version:

Easy coupling of firestore and a vuex module. 2-way sync with 0 boilerplate!

31 lines (30 loc) 808 B
import { AnyObject } from '../declarations'; export type IState = { _sync: { signedIn: boolean; userId: any; streaming: AnyObject; unsubscribe: AnyObject; pathVariables: AnyObject; patching: boolean; syncStack: { inserts: any[]; updates: AnyObject; propDeletions: AnyObject; deletions: any[]; debounceTimer: any; resolves: Promise<any>[]; rejects: Promise<any>[]; }; fetched: AnyObject; stopPatchingTimeout: any; }; [key: string]: any; }; /** * a function returning the state object with ONLY the ._sync prop * * @export * @returns {IState} the state object */ export default function (): IState;