#4286·composio

Broken TypeScript sample in your Slack bot example

Author: David19876543210Created Aug 28, 2026Updated Sep 27, 2026
Labelsbugdocs

I ran a checker over your docs and 1 of the TypeScript samples doesn't compile against @composio/[email protected]. On docs.composio.dev/examples/general-agent-with-pi:

const request = await setup.authorize('slackbot', {
  callbackUrl: `${process.env.APP_URL}/setup/callback`,
  experimental: { accountType: 'SHARED' },
});

// TS error: Object literal may only specify known properties, and
// 'experimental' does not exist in type '{ callbackUrl?: string; alias?: string; }'.

Looks like accountType: 'SHARED' might be a real feature that shipped in the docs ahead of its type declarations, rather than a typo.

I think it's drift between the published package and the docs rather than a mistake in the sample.

I'm building a small CLI that catches this in CI. Two questions if you have a minute: does this kind of thing get reported to you by users, and is it something anyone currently owns?

Happy to share the full JSON report if that's useful — just ask.

David