https://pulumi.com logo
#typescript
Title
# typescript
g

gifted-island-55702

04/09/2021, 12:01 PM
Is there any way to use TypeScript 4.x with Pulumi?
b

brave-planet-10645

04/09/2021, 12:30 PM
I've got typescript v4 on my machine and it's working fine. How are you using the aws sdk? We ship v2 with our AWS provider:
Copy code
import * as aws from "@pulumi/aws";

const db = new aws.sdk.DynamoDB.DocumentClient();
On my laptop:
Copy code
❯ tsc --version
Version 4.2.4
g

gifted-island-55702

04/09/2021, 1:45 PM
oh, I was using @aws-sdk/client-secrets-manager - I will switch to @pulumi/aws then - thanks!
And I have:
Copy code
$ tsc --version           
Version 3.7.7
where tsc is from
$CWD/node_modules?.bin/tsc
- is that expected?
I assumed that I don't have to install my own global typescript version
b

brave-planet-10645

04/09/2021, 1:59 PM
Good point actually... I've got 3.7.7 as well. let me ask internally to see if there are any plans to use an updated version of typescript
g

gifted-island-55702

04/09/2021, 2:09 PM
Thank you!
2 Views