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

Function emptyStringAsMissing

packages/effect/src/ConfigProvider.ts:849–851  ·  view source on GitHub ↗
(value: string | undefined, preserveEmptyStrings: boolean)

Source from the content-addressed store, hash-verified

847}
848
849function emptyStringAsMissing(value: string | undefined, preserveEmptyStrings: boolean): string | undefined {
850 return value === "" && !preserveEmptyStrings ? undefined : value
851}
852
853/**
854 * Creates a `ConfigProvider` backed by an explicit environment record.

Callers 2

stringNodeFunction · 0.85
nodeAtEnvFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected