MCPcopy
hub / github.com/EutropicAI/Final2x / add

Method add

src/renderer/src/utils/IOPath.ts:11–16  ·  view source on GitHub ↗

* @description Add a new inputpath to inputpathMap * @param id inputpath id * @param path inputpath

(id: string, path: string)

Source from the content-addressed store, hash-verified

9 * @param path inputpath
10 */
11 static add(id: string, path: string): void {
12 const { inputpathMap } = storeToRefs(useIOPathStore())
13 if (path !== '') {
14 inputpathMap.value.set(id, path)
15 }
16 }
17
18 /**
19 * @description Delete an inputpath from inputpathMap by id

Callers 1

IOPath.test.tsFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected