Comments (2)
Hi @Easy-Cloud-in ,
I'm not sure why you are seeing this error. I'm able to run tsc on this code without any errors:
import { ApiGatewayManagementApiClient, DeleteConnectionCommand } from "@aws-sdk/client-apigatewaymanagementapi";
const client = new ApiGatewayManagementApiClient({region: "us-east-1"});
const input = { ConnectionId: "STRING_VALUE" };
const command = new DeleteConnectionCommand(input);
async function foo(){
try {
const response = await client.send(command)
console.log(response)
}catch(err){
console.log(err)
}
}
foo()
$ ls
node_modules package-lock.json package.json sample.ts
$ tsc sample.ts
$ ls
node_modules package-lock.json package.json sample.js sample.ts
which SDK version and TS version are you using? Can I see the contents of your package.json
and tsconfig
if you have one?
Thanks,
Ran~
from aws-sdk-js-v3.
Related Issues (20)
- client-bedrock-agent: enableTrace: true returns no answer HOT 6
- Typo in tag name HOT 2
- TypeError: fromEnv is not a function HOT 3
- DynamoDBDocument transactWrite() errors when the TransactItems object contains Put objects HOT 3
- GetObjectCommand circular reference HOT 2
- Property 'ReadableStream' doesn't exist from SESClient HOT 5
- SESClient HOT 3
- SNS client hanging indefinitely sending PublishCommand HOT 12
- credentials property of SSM constructor is not documented HOT 2
- @aws-sdk/lib-storage doesn't upload and freezes program HOT 1
- at de_ParameterNotFoundRes (/var/runtime/node_modules/@aws-sdk/client-ssm/dist-cjs/index.js:7776:21) HOT 4
- SignatureDoesNotMatch Error in S3 PUT Object in React Native HOT 2
- (short issue description) HOT 1
- MetadataService ignoring timeout config HOT 3
- ScanCommand with no Limit set only ever reads one page of data HOT 2
- S3 v3.540.0 - v3.565.0 breaks when used with [email protected] HOT 3
- Volumes of FSx for NetApp ONTAP missing AdministrativeActions prop HOT 3
- @aws-sdk/credential-provider-node doesn't provide @aws-sdk/client-sts HOT 12
- dependency failures using punycode, getRandomBase64, and smithy in react-native
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from aws-sdk-js-v3.