MCPcopy Create free account
hub / github.com/NativeScript/SimDeck / sourceString

Function sourceString

packages/nativescript-inspector/src/index.ts:2358–2364  ·  view source on GitHub ↗
(
  location: JSONObject | null | undefined,
  key: string,
)

Source from the content-addressed store, hash-verified

2356}
2357
2358function sourceString(
2359 location: JSONObject | null | undefined,
2360 key: string,
2361): string | null {
2362 const value = location?.[key];
2363 return typeof value === "string" && value ? value : null;
2364}
2365
2366function sourceNumber(
2367 location: JSONObject | null | undefined,

Callers 5

nativeScriptNodeMethod · 0.85
nativeScriptInfoFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected