diff --git a/packages/macro/index.d.ts b/packages/macro/index.d.ts index 575aeb2c6..33f64fa44 100644 --- a/packages/macro/index.d.ts +++ b/packages/macro/index.d.ts @@ -7,15 +7,16 @@ export function t( ...placeholders: any[] ): string +export type UnderscoreDigit = { [digit: string]: T } export type ChoiceOptions = { - [digit: number]: T offset?: number zero?: T one?: T few?: T many?: T other?: T -} +} & UnderscoreDigit + export function plural(arg: number | string, options: ChoiceOptions): string export function selectOrdinal( arg: number | string,