MCPcopy Create free account
hub / github.com/MCSManager/MCSManager / addCallback

Method addCallback

frontend/src/services/uploadService.ts:90–97  ·  view source on GitHub ↗
(type: "start" | "end", callback: () => void)

Source from the content-addressed store, hash-verified

88 }
89
90 addCallback(type: "start" | "end", callback: () => void) {
91 if (type == "start") {
92 this.callbacks.onStart.add(callback);
93 }
94 if (type == "end") {
95 this.callbacks.onEnd.add(callback);
96 }
97 }
98
99 removeCallback(type: "start" | "end", callback: () => void) {
100 if (type == "start") {

Callers

nothing calls this directly

Calls 1

addMethod · 0.80

Tested by

no test coverage detected