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 21, 03:37 UTC
| 1 | id: ts-double-assertion |
| 2 | valid: |
| 3 | - 'const user = parseUser(input);' |
| 4 | - 'const config = { retries: 3 } satisfies Config;' |
| 5 | - 'const id = value as UserId;' |
| 6 | - 'const literal = "value as unknown as User";' |
| 7 | invalid: |
| 8 | - 'const user = value as unknown as User;' |
| 9 | - 'const user = value as any as User;' |
| 10 | - 'const user = (value as unknown) as User;' |
| 11 | - 'const view = <Widget user={value as unknown as User} />;' |