MCPcopy
hub / github.com/liriliri/eruda / Snippets

Interface Snippets

eruda.d.ts:290–312  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Implementers 1

Snippetssrc/Snippets/Snippets.js

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…