( option: string | Options.Options<string> )
| 364 | |
| 365 | /** @internal */ |
| 366 | export const keyValueMap = ( |
| 367 | option: string | Options.Options<string> |
| 368 | ): Options.Options<HashMap.HashMap<string, string>> => { |
| 369 | if (typeof option === "string") { |
| 370 | const single = makeSingle(option, Arr.empty(), InternalPrimitive.text) |
| 371 | return makeKeyValueMap(single as Single) |
| 372 | } |
| 373 | if (!isSingle(option as Instruction)) { |
| 374 | throw new Error("InvalidArgumentException: only single options can be key/value maps") |
| 375 | } else { |
| 376 | return makeKeyValueMap(option as Single) |
| 377 | } |
| 378 | } |
| 379 | |
| 380 | /** @internal */ |
| 381 | export const none: Options.Options<void> = (() => { |
nothing calls this directly
no test coverage detected
searching dependent graphs…