Skip to content

Commit

Permalink
fix: macro underscore type (#884)
Browse files Browse the repository at this point in the history
  • Loading branch information
semoal committed Nov 24, 2020
1 parent 82dea5f commit 5cade19
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/macro/index.d.ts
Original file line number Diff line number Diff line change
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

1 comment on commit 5cade19

@vercel
Copy link

@vercel vercel bot commented on 5cade19 Nov 24, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.