MCPcopy
hub / github.com/subquery/subql / extractArrayValueFromTsManifest

Function extractArrayValueFromTsManifest

packages/cli/src/utils/utils.ts:185–188  ·  view source on GitHub ↗
(content: string, key: string)

Source from the content-addressed store, hash-verified

183 return content.slice(0, startIndex) + newValue + content.slice(endIndex + 1);
184}
185export function extractArrayValueFromTsManifest(content: string, key: string): string | null {
186 const [startIndex, endIndex] = findArrayIndicesTsManifest(content, key);
187 return content.slice(startIndex, endIndex + 1);
188}
189
190export function extractFromTs(
191 manifest: string,

Callers 2

extractFromTsFunction · 0.85

Calls 1

Tested by

no test coverage detected