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

Function stringNode

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

Source from the content-addressed store, hash-verified

824}
825
826function stringNode(value: string, preserveEmptyStrings: boolean): Node | undefined {
827 const normalized = emptyStringAsMissing(value, preserveEmptyStrings)
828 return normalized === undefined ? undefined : makeValue(normalized)
829}
830
831function emptyStringAsMissing(value: string | undefined, preserveEmptyStrings: boolean): string | undefined {
832 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