UNPKG

@c11/engine.db

Version:

The engine db

16 lines (15 loc) 379 B
import { AccessMethods } from "@c11/engine.types"; /** * on * * Adds a listener * * - when a listener is first added a check is made * on the path and if it exists then the listener * is executed (async!) */ declare const on: (db: any) => (path: any, fn: any, refinee?: { type: AccessMethods; args: never[]; }) => (() => void) | undefined; export default on;