-
Notifications
You must be signed in to change notification settings - Fork 21
Expand file tree
/
Copy pathindex.d.ts
More file actions
28 lines (28 loc) · 838 Bytes
/
index.d.ts
File metadata and controls
28 lines (28 loc) · 838 Bytes
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
declare module "join-js" {
export type ResultMap = {
mapId: string;
createNew?: () => any;
idProperty?: string | { name: string, column: string } | (string | { name: string, column: string })[];
properties?: (string | {
name: string;
column: string;
})[];
associations?: {
name: string;
mapId: string;
columnPrefix?: string;
}[];
collections?: {
name: string;
mapId: string;
columnPrefix?: string;
}[];
};
declare function NotFoundError(message?: string): void;
const JoinJs: {
map(resultSet: any[], maps: ResultMap[], mapId: string, columnPrefix?: string): any;
mapOne(resultSet: any[], maps: ResultMap[], mapId: string, columnPrefix?: string, isRequired?: boolean): any;
NotFoundError: NotFoundError
};
export default JoinJs;
}