Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.
Mirrored from https://github.com/Camo67/composio.git
Synced Nov 22, 00:45 UTC
docs: fix twoslash errors — add imports + cut directives to TS code blocks
Dhawal Upadhyay committed
Apr 10, 2026 at 11:17 UTC
e63f3cac2d4336052a6dd3f74da9fb76ac8f7e9e
1 file changed
+12
docs/content/docs/importing-existing-connections.mdx
+12
@@ -188,6 +188,9 @@ composio.connected_accounts.update(
188
</Tab>
189
<Tab value="TypeScript">
190
```typescript
191
+import { Composio } from '@composio/core';
192
+const composio = new Composio({ apiKey: 'your-api-key' });
193
+// ---cut---
194
await composio.connectedAccounts.update('ca_your_connection_id', {
195
connection: {
196
state: {
@@ -225,6 +228,9 @@ composio.connected_accounts.update(
228
</Tab>
229
<Tab value="TypeScript">
230
```typescript
231
+import { Composio } from '@composio/core';
232
+const composio = new Composio({ apiKey: 'your-api-key' });
233
+// ---cut---
234
await composio.connectedAccounts.update('ca_your_connection_id', {
235
connection: {
236
state: {
@@ -262,6 +268,9 @@ composio.connected_accounts.update(
268
</Tab>
269
<Tab value="TypeScript">
270
```typescript
271
+import { Composio } from '@composio/core';
272
+const composio = new Composio({ apiKey: 'your-api-key' });
273
+// ---cut---
274
await composio.connectedAccounts.update('ca_your_connection_id', {
275
connection: {
276
state: {
@@ -300,6 +309,9 @@ session = composio.create(
309
</Tab>
310
<Tab value="TypeScript">
311
```typescript
312
+import { Composio } from '@composio/core';
313
+const composio = new Composio({ apiKey: 'your-api-key' });
314
+// ---cut---
315
const session = await composio.create('user_123', {
316
authConfigs: { gmail: 'ac_your_auth_config' },
317
toolkits: ['gmail'],