(root: unknown, options?: {
readonly preserveEmptyStrings?: boolean | undefined
})
| 777 | * @since 4.0.0 |
| 778 | */ |
| 779 | export function fromUnknown(root: unknown, options?: { |
| 780 | readonly preserveEmptyStrings?: boolean | undefined |
| 781 | }): ConfigProvider { |
| 782 | const preserveEmptyStrings = options?.preserveEmptyStrings === true |
| 783 | return make((path) => Effect.succeed(nodeAtJson(root, path, preserveEmptyStrings))) |
| 784 | } |
| 785 | |
| 786 | function nodeAtJson(root: unknown, path: Path, preserveEmptyStrings: boolean): Node | undefined { |
| 787 | let cur: unknown = root |
nothing calls this directly
no test coverage detected