-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Feature]: Use default imports to minimize identifier conflicts with existing code #239
Comments
An attempt of implementation was made in #240 An easier solution would be to use named import for client creation and other direct uses of Identifier (like import AWS_DynamoDB, { DynamoDB } from "@aws-sdk/client-dynamodb";
const ddbClient = new DynamoDB({ region: "us-west-2" });
const listTablesInput: AWS_DynamoDB.ListTablesCommandInput = { Limit: 10 };
const listTablesOutput: AWS_DynamoDB.ListTablesCommandOutput = await ddbClient.listTables(
listTablesInput
); |
During internal discussions, we decided to go ahead with this suggestion. |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs and link to relevant comments in this thread. |
Self-service
Input code
Input:
Existing output:
Expected Output
Additional context
This solution not only minimizes imports which can conflict with other variables defined in the code, but also adds support for nested type definitions requested in #225
The text was updated successfully, but these errors were encountered: