( tool: AnyDeclarativeTool, )
| 45 | * Type guard to check if a declarative tool is modifiable. |
| 46 | */ |
| 47 | export function isModifiableDeclarativeTool( |
| 48 | tool: AnyDeclarativeTool, |
| 49 | ): tool is ModifiableDeclarativeTool<object> { |
| 50 | return 'getModifyContext' in tool; |
| 51 | } |
| 52 | |
| 53 | function createTempFilesForModify( |
| 54 | currentContent: string, |
no outgoing calls
no test coverage detected