From 3ed377df2289b0f7aabfb92dea097fd4bbae9628 Mon Sep 17 00:00:00 2001 From: Ramon de Klein Date: Fri, 9 Mar 2018 00:17:54 +0100 Subject: [PATCH] Fix typing of Model.createTable --- types/dynogels/index.d.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/types/dynogels/index.d.ts b/types/dynogels/index.d.ts index 2e4c5acbf4..4742af5a04 100644 --- a/types/dynogels/index.d.ts +++ b/types/dynogels/index.d.ts @@ -1,6 +1,7 @@ // Type definitions for dynogels 8.0 // Project: https://github.com/clarkie/dynogels#readme // Definitions by: Spartan Labs +// Ramon de Klein // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.4 @@ -76,7 +77,7 @@ export interface Model { getItems(items: string[] | Array<{ [key: string]: string }>, options: GetItemOptions, callback: (err: Error, items: any[]) => void): void; batchGetItems(items: string[] | Array<{ [key: string]: string }>, callback: (err: Error, items: any[]) => void): void; batchGetItems(items: string[] | Array<{ [key: string]: string }>, options: GetItemOptions, callback: (err: Error, items: any[]) => void): void; - createTable(options: { [key: string]: CreateTablesOptions } | DynogelsGlobalOptions, callback: (err: Error, data: AWS.DynamoDB.CreateTableOutput) => void): void; + createTable(options: CreateTablesOptions, callback: (err: Error, data: AWS.DynamoDB.CreateTableOutput) => void): void; createTable(callback: (err: Error, data: AWS.DynamoDB.CreateTableOutput) => void): void; updateTable(throughput: Throughput, callback: (err: Error, data: AWS.DynamoDB.UpdateTableOutput) => void): void; updateTable(callback: (err: Error, data: AWS.DynamoDB.UpdateTableOutput) => void): void;