MCPcopy Index your code
hub / github.com/massCodeIO/massCode / asString

Function asString

src/main/http/import/opencollection.ts:36–42  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

34}
35
36function asString(value: unknown): string {
37 if (typeof value === 'string')
38 return value
39 if (typeof value === 'number' || typeof value === 'boolean')
40 return String(value)
41 return ''
42}
43
44function isYamlFile(file: HttpImportFile): boolean {
45 const name = file.name.toLowerCase()

Callers 6

parseHeadersFunction · 0.70
parseParamsFunction · 0.70
parseAuthFunction · 0.70
parseBodyFunction · 0.70
parseRequestFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected