How do I use AWS sdk definitions for TypeScript?
I think a more appropriate way to do this is
import { <ServiceName> } from 'aws-sdk';
for instance
import { DynamoDB } from 'aws-sdk';
followed by
this.client = new DynamoDB();
in the class.
I say it is more appropriate because it uses TypeScript's import syntax.
Also, there's a clear explanation - by AWS - on how to use TS with AWS SDK here.
Change to :
import AWS = require('aws-sdk');
var ses:AWS.SES = new AWS.SES();
Note: if import
is unclear you probably want to read up on modules : https://basarat.gitbooks.io/typescript/content/docs/project/modules.html
TIP: always a good idea to see the test file for intended usage : https://github.com/borisyankov/DefinitelyTyped/blob/master/aws-sdk/aws-sdk-tests.ts