-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.d.ts
More file actions
42 lines (37 loc) · 1.09 KB
/
Copy pathindex.d.ts
File metadata and controls
42 lines (37 loc) · 1.09 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
import {StringType} from "./src/types/StringType";
import {NumberType} from "./src/types/NumberType";
import {BooleanType} from "./src/types/BooleanType";
import {DateType} from "./src/types/DateType";
import {UuidType} from "./src/types/UuidType";
import {ForeignType} from "./src/types/ForeignType";
import {Domain} from "./src/Domain";
import * as uow from "./src/UnitOfWork";
export declare const type: {
string: StringType;
number: NumberType;
boolean: BooleanType,
date: DateType,
uuid: UuidType,
foreign: (foreignEntityName: string) => ForeignType
};
/**
* Create new domain context
* @param adapter
* @param connectionInfo
* @returns {Domain}
*/
export function createDomain(adapter: any, connectionInfo: any): Domain;
/**
* Unit of Work class
*/
export const UnitOfWork: uow.UnitOfWork;
/**
* Initialize all entities; needed especially for migrations
* @param {string} path
*/
export function initEntitiesFrom(path: string);
/**
* Awaitable setImmediate. Wait for next event loop iteration/tick
* @returns {Promise<void>}
*/
export function immediate(): Promise<void>;