Skip to content

Commit bde1ea0

Browse files
authored
Merge pull request #571 from jkarsrud/tables-types
Add TablesOptions type to tables.d.ts
2 parents e7606c2 + ebbc3f4 commit bde1ea0

File tree

1 file changed

+16
-2
lines changed

1 file changed

+16
-2
lines changed

types/tables.d.ts

Lines changed: 16 additions & 2 deletions
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-
export interface ArcTables {
79-
<Tables = AnyTables>(): Promise<ArcDB<Tables>>;
78+
type TablesOptions = {
79+
awsjsonMarshall?: {
80+
allowImpreciseNumbers?: boolean,
81+
convertClassInstanceToMap?: boolean,
82+
convertEmptyValues?: boolean,
83+
convertTopLevelContainer?: boolean,
84+
removeUndefinedValues?: boolean
85+
},
86+
awsjsonUnmarshall?: {
87+
convertWithoutMapWrapper?: boolean,
88+
wrapNumbers?: boolean | ((value:string) => number | bigint | any)
89+
}
90+
};
91+
92+
export interface ArcTables{
93+
<Tables = AnyTables>(options?: TablesOptions): Promise<ArcDB<Tables>>;
8094

8195
// legacy methods
8296
insert: any;

0 commit comments

Comments
 (0)