-
-
Notifications
You must be signed in to change notification settings - Fork 236
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
11 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,8 @@ | ||
import {GetICUArgs} from '@schummar/icu-type-parser'; | ||
import {GetICUArgs, GetICUArgsOptions} from '@schummar/icu-type-parser'; | ||
|
||
type ICUArgs< | ||
Message extends string, | ||
ICUArgument, | ||
ICUNumberArgument, | ||
ICUDateArgument | ||
> = | ||
type ICUArgs<Message extends string, Options extends GetICUArgsOptions> = | ||
// This is important when `t` is returned from a function and there's no | ||
// known `Message` yet. Otherwise, we'd run into an infinite loop. | ||
string extends Message | ||
? {} | ||
: GetICUArgs< | ||
Message, | ||
{ | ||
ICUArgument: ICUArgument; | ||
ICUNumberArgument: ICUNumberArgument; | ||
ICUDateArgument: ICUDateArgument; | ||
} | ||
>; | ||
string extends Message ? {} : GetICUArgs<Message, Options>; | ||
|
||
export default ICUArgs; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters