UNPKG

1.32 kBTypeScriptView Raw
1/// <reference path="DMLDriver.d.ts" />
2
3declare namespace FxOrmPatch {
4 interface PatchedSyncfiedModelOrInstance {
5 /**
6 * @important
7 *
8 * methods patchSyncfied by 'fib-orm'
9 */
10 countSync: Function;
11 firstSync: Function;
12 lastSync: Function;
13 allSync: Function;
14 whereSync: Function;
15 findSync: Function;
16 removeSync: Function;
17 runSync: Function;
18 }
19
20 interface PatchedSyncfiedInstanceWithDbWriteOperation extends PatchedSyncfiedModelOrInstance {
21 saveSync: Function;
22 removeSync: Function;
23 validateSync: Function;
24 modelSync: Function;
25 }
26
27 interface PatchedSyncfiedInstanceWithAssociations {
28 /**
29 * generated by association, but you don't know what it is
30 */
31 /* getXxx: Function; */
32 /* setXxx: Function; */
33 /* removeXxx: Function; */
34
35 /* findByXxx: Function; */
36 [associationFunc: string]: Function;
37 }
38
39 type PatchedDMLDriver = FxOrmDMLDriver.DMLDriver;
40
41 interface PatchedORMInstance {
42 driver: FxOrmPatch.PatchedDMLDriver;
43 }
44
45 interface PatchedSyncfiedInstantce extends FxOrmPatch.PatchedSyncfiedInstanceWithDbWriteOperation, FxOrmPatch.PatchedSyncfiedInstanceWithAssociations {
46 }
47}
\No newline at end of file