Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 16 additions & 2 deletions types/tables.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,22 @@ export type ArcDB<Tables> = ArcDBWith<Tables> & {
// Permissive by default: allows any table, any inputs, any outputs.
type AnyTables = Record<string, any>;

export interface ArcTables {
<Tables = AnyTables>(): Promise<ArcDB<Tables>>;
type TablesOptions = {
awsjsonMarshall?: {
allowImpreciseNumbers?: boolean,
convertClassInstanceToMap?: boolean,
convertEmptyValues?: boolean,
convertTopLevelContainer?: boolean,
removeUndefinedValues?: boolean
},
awsjsonUnmarshall?: {
convertWithoutMapWrapper?: boolean,
wrapNumbers?: boolean | ((value:string) => number | bigint | any)
}
};

export interface ArcTables{
<Tables = AnyTables>(options?: TablesOptions): Promise<ArcDB<Tables>>;

// legacy methods
insert: any;
Expand Down