mirror of
https://github.com/appy-one/acebase-core.git
synced 2026-06-30 06:02:04 -06:00
Improve query option types
This commit is contained in:
parent
ea4766011a
commit
ed113d772d
1 changed files with 3 additions and 2 deletions
|
|
@ -118,12 +118,13 @@ export interface QueryOptions {
|
|||
/**
|
||||
* callback function for events
|
||||
*/
|
||||
eventHandler?: (event: { name: string, [key: string]: any }) => boolean|void;
|
||||
eventHandler?: (event: { name: 'add' | 'change' | 'remove'; path: string; value: any; } | { name: string; [key: string]: any }) => boolean|void;
|
||||
|
||||
/**
|
||||
* monitor changes
|
||||
* @default false
|
||||
*/
|
||||
monitor?: {
|
||||
monitor?: boolean | {
|
||||
/**
|
||||
* monitor new matches (either because they were added, or changed and now match the query)
|
||||
*/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue