-
-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: format warning with code and data to allow conditional logging
- Loading branch information
1 parent
ff509ba
commit 8fe0b03
Showing
4 changed files
with
76 additions
and
42 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,3 +1,12 @@ | ||
// Internal Helpers | ||
export type $Tuple<T> = readonly [T?, ...T[]]; | ||
export type $Subtract<T extends K, K> = Omit<T, keyof K>; | ||
|
||
export type ErrorCode = | ||
| 'NO_I18NEXT_INSTANCE' | ||
| 'NO_LANGUAGES' | ||
| 'DEPRECATED_OPTION' | ||
| 'TRANS_NULL_VALUE' | ||
| 'TRANS_INVALID_OBJ' | ||
| 'TRANS_INVALID_VAR' | ||
| 'TRANS_INVALID_COMPONENTS'; |
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
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
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