Skip to content

Commit 74e2d48

Browse files
sdedovicjsundai
andauthored
fix typescript example erroneous syntax (#3585)
Co-authored-by: Jwahir Sundai <jwahir.sundai@temporal.io>
1 parent fab4dc5 commit 74e2d48

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

docs/production-deployment/cloud/get-started/api-keys.mdx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -598,14 +598,14 @@ myClient.Connection.RpcMetadata = new Dictionary<string, string>()
598598
Create an initial `Connection` (for use with `Client`):
599599

600600
```typescript
601-
const connection = await Connection.connect(
601+
const connection = await Connection.connect({
602602
address: <endpoint>,
603603
tls: true,
604604
apiKey: <APIKey>,
605605
metadata: {
606606
'temporal-namespace': <namespace_id>.<account_id>,
607607
},
608-
)
608+
});
609609
const client = new Client({
610610
connection,
611611
namespace: <namespace_id>.<account_id>,
@@ -615,14 +615,14 @@ const client = new Client({
615615
Create an initial Worker `NativeConnection` (for use with `Worker`):
616616

617617
```typescript
618-
const connection = await NativeConnection.connect(
618+
const connection = await NativeConnection.connect({
619619
address: <endpoint>,
620620
tls: true,
621621
apiKey: <APIKey>,
622622
metadata: {
623623
'temporal-namespace': <namespace_id>.<account_id>,
624624
},
625-
)
625+
});
626626
const worker = await Worker.create({
627627
connection,
628628
namespace: <namespace_id>.<account_id>,

0 commit comments

Comments
 (0)