(root: unknown, options?: {
readonly preserveEmptyStrings?: boolean | undefined
})
| 795 | * @since 4.0.0 |
| 796 | */ |
| 797 | export function fromUnknown(root: unknown, options?: { |
| 798 | readonly preserveEmptyStrings?: boolean | undefined |
| 799 | }): ConfigProvider { |
| 800 | const preserveEmptyStrings = options?.preserveEmptyStrings === true |
| 801 | return make((path) => Effect.succeed(nodeAtJson(root, path, preserveEmptyStrings))) |
| 802 | } |
| 803 | |
| 804 | function nodeAtJson(root: unknown, path: Path, preserveEmptyStrings: boolean): Node | undefined { |
| 805 | let cur: unknown = root |
nothing calls this directly
no test coverage detected