MCPcopy Create free account
hub / github.com/Effect-TS/effect / stringNode

Function stringNode

packages/effect/src/ConfigProvider.ts:844–847  ·  view source on GitHub ↗
(value: string, preserveEmptyStrings: boolean)

Source from the content-addressed store, hash-verified

842}
843
844function stringNode(value: string, preserveEmptyStrings: boolean): Node | undefined {
845 const normalized = emptyStringAsMissing(value, preserveEmptyStrings)
846 return normalized === undefined ? undefined : makeValue(normalized)
847}
848
849function emptyStringAsMissing(value: string | undefined, preserveEmptyStrings: boolean): string | undefined {
850 return value === "" && !preserveEmptyStrings ? undefined : value

Callers 2

describeUnknownFunction · 0.85
ConfigProvider.tsFile · 0.85

Calls 2

emptyStringAsMissingFunction · 0.85
makeValueFunction · 0.85

Tested by

no test coverage detected