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

Function toText

common/src/typecheck.ts:43–46  ·  view source on GitHub ↗
(v: any)

Source from the content-addressed store, hash-verified

41}
42
43export function toText(v: any): string | null {
44 if (isEmpty(v)) return null;
45 return String(v);
46}
47
48export function toNumber(v: any): number | null {
49 if (isEmpty(v)) return null;

Callers 9

parseUserNameFunction · 0.85
buyOrRenewInstanceFunction · 0.85
queryInstanceByUserIdFunction · 0.85
getNodeStatusFunction · 0.85
onStartMethod · 0.85
info_router.tsFile · 0.85

Calls 1

isEmptyFunction · 0.85

Tested by

no test coverage detected