Skip to content

Commit

Permalink
fix: macro underscore type
Browse files Browse the repository at this point in the history
  • Loading branch information
Sergio committed Nov 23, 2020
1 parent 82dea5f commit b0790a5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/macro/index.d.ts
Expand Up @@ -7,15 +7,16 @@ export function t(
...placeholders: any[]
): string

export type UnderscoreDigit<T = string> = { [digit: string]: T }
export type ChoiceOptions<T = string> = {
[digit: number]: T
offset?: number
zero?: T
one?: T
few?: T
many?: T
other?: T
}
} & UnderscoreDigit<T>

export function plural(arg: number | string, options: ChoiceOptions): string
export function selectOrdinal(
arg: number | string,
Expand Down

0 comments on commit b0790a5

Please sign in to comment.