Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
}
interface PluginOptions {
bindName?: string
unbindName?: string
serialize?: FirestoreOptions['serialize']
reset?: FirestoreOptions['reset']
wait?: FirestoreOptions['wait']
}
const defaultOptions: Readonly> = {
bindName: '$bind',
unbindName: '$unbind',
serialize: firestoreOptions.serialize,
reset: firestoreOptions.reset,
wait: firestoreOptions.wait,
}
declare module 'vue/types/vue' {
// TODO: export types to allow custom function names
interface Vue {
$bind(
name: string,
reference: firestore.Query | firestore.CollectionReference,
options?: FirestoreOptions
): Promise
$bind(
name: string,
reference: firestore.DocumentReference,
options?: FirestoreOptions
): Promise
$unbind: (name: string, reset?: FirestoreOptions['reset']) => void