diff --git a/packages/macro/__typetests__/index.test-d.tsx b/packages/macro/__typetests__/index.test-d.tsx index 2dbcd3887..771507296 100644 --- a/packages/macro/__typetests__/index.test-d.tsx +++ b/packages/macro/__typetests__/index.test-d.tsx @@ -143,6 +143,9 @@ expectType( }) ) +// @ts-expect-error: other is required +expectType(plural(5, { one: "test" })) + /////////////////// //// Select Ordinal /////////////////// diff --git a/packages/macro/index.d.ts b/packages/macro/index.d.ts index 69a30f842..1f1ef7346 100644 --- a/packages/macro/index.d.ts +++ b/packages/macro/index.d.ts @@ -13,7 +13,7 @@ export type ChoiceOptions = { many?: string /** Catch-all option */ - other?: string + other: string /** Exact match form, corresponds to =N rule */ [digit: `${number}`]: string }