Function
wrapper
(
_: Config.Config.Wrap<{
key1: number
list: ReadonlyArray<number>
option: Option.Option<number>
secret: Redacted.Redacted
nested?:
| Partial<{
key2: string
}>
| undefined
}>
)
Source from the content-addressed store, hash-verified
| 511 | describe("Wrap", () => { |
| 512 | it("unwrap correctly builds config", () => { |
| 513 | const wrapper = ( |
| 514 | _: Config.Config.Wrap<{ |
| 515 | key1: number |
| 516 | list: ReadonlyArray<number> |
| 517 | option: Option.Option<number> |
| 518 | secret: Redacted.Redacted |
| 519 | nested?: |
| 520 | | Partial<{ |
| 521 | key2: string |
| 522 | }> |
| 523 | | undefined |
| 524 | }> |
| 525 | ) => Config.unwrap(_) |
| 526 | |
| 527 | const config = wrapper({ |
| 528 | key1: Config.integer("key1"), |
Tested by
no test coverage detected