MCPcopy
hub / github.com/callstack/agent-device / parse

Function parse

src/utils/source-value.test.ts:7–9  ·  view source on GitHub ↗
(definition: SourceValueDefinition, value: unknown)

Source from the content-addressed store, hash-verified

5const LABEL = 'config file';
6
7function parse(definition: SourceValueDefinition, value: unknown) {
8 return parseSourceValue(definition, value, LABEL, 'someKey');
9}
10
11function expectInvalidArgs(fn: () => unknown, messageFragment?: string) {
12 expect(fn).toThrow(

Callers 4

readRequiredFunction · 0.70
readOptionalFunction · 0.70
readNullableFunction · 0.70

Calls 1

parseSourceValueFunction · 0.90

Tested by

no test coverage detected