-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
42 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import "@aws-lite/client"; | ||
|
||
declare interface Dynamodb { | ||
GetItem: (options: any) => Promise<any>; | ||
PutItem: (options: any) => Promise<any>; | ||
// etc... | ||
} | ||
|
||
declare global { | ||
interface AwsLiteClient { | ||
dynamodb: Dynamodb; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
// https://www.typescriptlang.org/docs/handbook/modules.html#working-with-other-javascript-libraries | ||
// 'We call declarations that don't define an implementation "ambient".' | ||
|
||
interface AwsLiteConfig { | ||
accessKeyId?: string; | ||
secretAccessKey?: string; | ||
sessionToken?: string; | ||
region?: string; | ||
profile?: string; | ||
autoloadPlugins?: boolean; | ||
debug?: string; | ||
keepAlive?: boolean; | ||
protocol?: string; | ||
host?: string; | ||
port?: number; | ||
plugins?: any[]; | ||
} | ||
|
||
declare interface AwsLiteClient { | ||
(options: any): Promise<any>; | ||
} | ||
|
||
declare function AwsLite(config?: AwsLiteConfig): Promise<AwsLiteClient>; | ||
|
||
declare module "@aws-lite/client" { | ||
export = AwsLite; | ||
} |