From 78056bda897bec246c27d1a2466e73ae5a717884 Mon Sep 17 00:00:00 2001 From: Maxwell Brown Date: Sun, 19 Nov 2023 08:31:31 -0500 Subject: [PATCH] fix the type signature of `Options.keyValueMap` --- .changeset/angry-mugs-applaud.md | 5 +++++ src/Options.ts | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 .changeset/angry-mugs-applaud.md diff --git a/.changeset/angry-mugs-applaud.md b/.changeset/angry-mugs-applaud.md new file mode 100644 index 0000000..3636642 --- /dev/null +++ b/.changeset/angry-mugs-applaud.md @@ -0,0 +1,5 @@ +--- +"@effect/cli": patch +--- + +fix the type signature of `Options.keyValueMap` diff --git a/src/Options.ts b/src/Options.ts index 2c79825..0b3ff99 100644 --- a/src/Options.ts +++ b/src/Options.ts @@ -257,7 +257,7 @@ export const integer: (name: string) => Options = InternalOptions.intege * @since 1.0.0 * @category constructors */ -export const keyValueMap: (name: string) => Options> = +export const keyValueMap: (option: string | Options) => Options> = InternalOptions.keyValueMap /**