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 | import { TypeBuilder } from './TypeBuilder'; |
| 2 | import { Writer } from './Writer'; |
| 3 | import { OperatorPrecedence } from './OperatorPrecedence'; |
| 4 | |
| 5 | export class ArraySpread extends TypeBuilder { |
| 6 | readonly precedence = OperatorPrecedence.ArrayType; |
| 7 | |
| 8 | constructor(private innerType: TypeBuilder) { |
| 9 | super(); |
| 10 | } |
| 11 | write(writer: Writer): void { |
| 12 | writer.write('[...').write(this.innerType).write(']'); |
| 13 | } |
| 14 | } |
| 15 | |
| 16 | export function arraySpread(innerType: TypeBuilder) { |
| 17 | return new ArraySpread(innerType); |
| 18 | } |