MCPcopy Index your code
hub / github.com/scriptscat/scriptcat / doThrow

Method doThrow

packages/message/client.ts:42–48  ·  view source on GitHub ↗
(action: string, params?: any)

Source from the content-addressed store, hash-verified

40 }
41
42 async doThrow<T = any>(action: string, params?: any): Promise<T> {
43 const ret = await sendMessage<T>(this.msgSender, `${this.prefix}${action}`, params);
44 if (!ret) {
45 throw new Error(`doThrow: ${this.prefix}${action}`);
46 }
47 return ret;
48 }
49}

Callers 15

getAllScriptsMethod · 0.80
installMethod · 0.80
infoMethod · 0.80
importByUrlMethod · 0.80
getScriptResourcesMethod · 0.80
getScriptValueMethod · 0.80
pageLoadMethod · 0.80
getPopupDataMethod · 0.80
getPermissionInfoMethod · 0.80
getScriptPermissionsMethod · 0.80
refreshSkillMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected