MCPcopy Index your code
hub / github.com/Linen-dev/linen.dev / tc

Function tc

packages/utilities/src/tc.ts:1–7  ·  view source on GitHub ↗
(fn: () => T)

Source from the content-addressed store, hash-verified

1export function tc<T>(fn: () => T) {
2 try {
3 return fn();
4 } catch (error) {
5 return null;
6 }
7}

Callers 3

serializeUserFunction · 0.90
serializeAccountFunction · 0.90
refreshApiKeysFunction · 0.90

Calls 1

fnFunction · 0.85

Tested by

no test coverage detected