Skip to content

Commit 8c53440

Browse files
authored
Add TablesOptions type to tables.d.ts
1 parent 6179b18 commit 8c53440

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

types/tables.d.ts

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,22 @@ export type ArcDB<Tables> = ArcDBWith<Tables> & {
7575
// Permissive by default: allows any table, any inputs, any outputs.
7676
type AnyTables = Record<string, any>;
7777

78+
type TablesOptions = {
79+
awsjsonMarshall?: {
80+
allowImpreciseNumbers?: bool,
81+
convertClassInstanceToMap?: bool,
82+
convertEmptyValues?: bool,
83+
convertTopLevelContainer?: bool,
84+
removeUndefinedValues?: bool
85+
},
86+
awsjsonUnmarshall?: {
87+
convertWithoutMapWrapper?: bool,
88+
wrapNumbers?: bool | ((value:string) => number | bigint | any)
89+
}
90+
};
91+
7892
export interface ArcTables {
79-
<Tables = AnyTables>(): Promise<ArcDB<Tables>>;
93+
<Tables = AnyTables>(options?: TablesOptions): Promise<ArcDB<Tables>>;
8094

8195
// legacy methods
8296
insert: any;

0 commit comments

Comments
 (0)