MCPcopy Create free account
hub / github.com/microsoft/TypeChat / getData

Function getData

typescript/src/result.ts:40–45  ·  view source on GitHub ↗
(result: Result<T>)

Source from the content-addressed store, hash-verified

38 * @returns The value of the `data` property.
39 */
40export function getData<T>(result: Result<T>) {
41 if (result.success) {
42 return result.data;
43 }
44 throw new Error(result.message);
45}

Callers 3

_handleMessageFunction · 0.85
musicAppFunction · 0.85
main.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…