Where can I locate Type Definitions Files (*.d.ts) for the Amazon Cognito Identity SDK and how can I use them?
I am utilizing TypeScript for Angular2 and I would like to have the code assistant readily available when implementing "AWS Cognito." While I already use import AWS = require("aws-sdk");
for the "aws-sdk," I am unable to find a way to import the classes for the "Amazon Cognito Identity SDK." I have searched through DefinitelyTyped, but without success.
Note: I am aware that I could declare a global variable of type "any," but what I truly desire is the functionality offered by the code assistant.
UPDATE: It should be noted that "aws-sdk" and "Amazon Cognito Identity SDK" are distinct and contain separate classes.
Update 2: Currently, my attempt involves implementing the following code:
AWSCognito.config.region = 'us-east-1';
var poolData = {
UserPoolId : '...', // input your user pool id here
ClientId : '...' // input your app client id here
};
var userPool =
new AWSCognito.CognitoIdentityServiceProvider.CognitoUserPool(poolData);
var userData = {
Username : '...', // input your username here
Pool : userPool
};