Dexie.fakeAutoComplete()
Helps IDE know how you will call your callback.
Sample
Then, in your IDE, you write:
How it works
The function simply calls setTimeout(yourFunction) and then immediately calls clearTimeout(handle).
Performance implications
Doing a loop of 100,000 calls to fakeAutoComplete() will result in the same time consumption as setting a property to an object twice. It is extremely fast.