@sheet-i18n/react-client 0.1.1 → 0.1.2-canary.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/package.json +3 -3
package/dist/index.d.mts
CHANGED
|
@@ -12,7 +12,7 @@ declare function IntlProvider<TSupportedLocales extends readonly string[], TLoca
|
|
|
12
12
|
|
|
13
13
|
type UseIntlParams<D = MessageDescriptor> = Parameters<IntlShape['$t']> extends [D, ...infer R] ? [...R, Omit<D, 'id'>] : never;
|
|
14
14
|
type $TParams = Partial<UseIntlParams>;
|
|
15
|
-
type FilteredTValues = $TParams[
|
|
15
|
+
type FilteredTValues = $TParams[0] extends Record<string, infer V> | undefined ? Record<string, Exclude<V, bigint>> | undefined : $TParams[0];
|
|
16
16
|
interface UseTranslationParams<TSupportedLocales extends readonly string[], TLocaleSet extends Record<TSupportedLocales[number], Record<string, any>>, TSheetTitle = keyof TLocaleSet[TSupportedLocales[number]]> {
|
|
17
17
|
sheetTitle: TSheetTitle;
|
|
18
18
|
i18nStore: I18nStore<TSupportedLocales, TLocaleSet>;
|
package/dist/index.d.ts
CHANGED
|
@@ -12,7 +12,7 @@ declare function IntlProvider<TSupportedLocales extends readonly string[], TLoca
|
|
|
12
12
|
|
|
13
13
|
type UseIntlParams<D = MessageDescriptor> = Parameters<IntlShape['$t']> extends [D, ...infer R] ? [...R, Omit<D, 'id'>] : never;
|
|
14
14
|
type $TParams = Partial<UseIntlParams>;
|
|
15
|
-
type FilteredTValues = $TParams[
|
|
15
|
+
type FilteredTValues = $TParams[0] extends Record<string, infer V> | undefined ? Record<string, Exclude<V, bigint>> | undefined : $TParams[0];
|
|
16
16
|
interface UseTranslationParams<TSupportedLocales extends readonly string[], TLocaleSet extends Record<TSupportedLocales[number], Record<string, any>>, TSheetTitle = keyof TLocaleSet[TSupportedLocales[number]]> {
|
|
17
17
|
sheetTitle: TSheetTitle;
|
|
18
18
|
i18nStore: I18nStore<TSupportedLocales, TLocaleSet>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sheet-i18n/react-client",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2-canary.0",
|
|
4
4
|
"description": "a client package for react modules used by sheet-i18n",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index.mjs",
|
|
@@ -28,8 +28,8 @@
|
|
|
28
28
|
"react": "^19.0.0",
|
|
29
29
|
"react-intl": "^7.0.4",
|
|
30
30
|
"@sheet-i18n/shared-utils": "0.2.2",
|
|
31
|
-
"@sheet-i18n/
|
|
32
|
-
"@sheet-i18n/
|
|
31
|
+
"@sheet-i18n/react-core": "0.1.1",
|
|
32
|
+
"@sheet-i18n/errors": "0.2.2"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
35
|
"@types/react": "^19.0.2",
|