I am in the process of developing a definition file for the Vogels library, which serves as a wrapper for the AWS SDK and includes a property that exports the entire AWS SDK.
declare module "vogels" {
import AWS = require('aws-sdk');
export function define(modelName: String, config: any): void;
export var AWS: AWS; /* THIS LINE DOESN'T TRANSPILE */
}
The usage of this library is as follows:
import vogels = require('vogels');
vogels.AWS.config.update({region: region});
var model = vogels.define('test', {
..
}
});
Unfortunately, exporting the AWS property from the "vogels" module poses a challenge due to AWS not being recognized as a type. Is there a way to export the AWS property without duplicating the entire AWS definitions within my module?