-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathindex.d.ts
More file actions
34 lines (30 loc) · 1.02 KB
/
Copy pathindex.d.ts
File metadata and controls
34 lines (30 loc) · 1.02 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
export { default as Model } from './orm/Model';
export { default as QueryBuilder } from './orm/QueryBuilder';
export { default as Collection } from './orm/Collection';
export { default as Database } from './database/connection';
export * from './orm/Relation';
export * from './orm/CustomCasts';
export declare class FExpression {
constructor(column: string);
plus(n: number): any;
minus(n: number): any;
times(n: number): any;
divide(n: number): any;
}
export declare function F(column: string): FExpression;
export declare class ModelNotFoundException extends Error {
name: 'ModelNotFoundException';
model: string;
id?: any;
constructor(model: string, id?: any);
toResponse(): { status: 404; message: string };
}
export declare class MassAssignmentException extends Error {
name: 'MassAssignmentException';
model: string;
discardedKeys: string[];
constructor(model: string, discardedKeys: string[]);
toResponse(): { status: 422; message: string };
}
// Default export
export { default } from './orm/Model';