| 288 | } |
| 289 | |
| 290 | export interface Snippets extends Tool { |
| 291 | /** |
| 292 | * Clear snippets |
| 293 | */ |
| 294 | clear(): void |
| 295 | /** |
| 296 | * Add snippet |
| 297 | * @param name Snippet name |
| 298 | * @param fn Function to be triggered |
| 299 | * @param desc Snippet description |
| 300 | */ |
| 301 | add(name: string, fn: Function, desc: string): void |
| 302 | /** |
| 303 | * Remove specified snippet |
| 304 | * @param name Snippet name |
| 305 | */ |
| 306 | remove(name: string): void |
| 307 | /** |
| 308 | * Run specified snippet |
| 309 | * @param name Snippet name |
| 310 | */ |
| 311 | run(name: string): void |
| 312 | } |
| 313 | |
| 314 | export interface SnippetsConstructor { |
| 315 | new (): Snippets |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…