@koine/next 1.0.17 → 1.0.18
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/i18n/useT/index.d.ts +3 -3
- package/package.json +3 -3
package/i18n/useT/index.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
export declare type TranslateNamespace = Extract<keyof Koine.NextTranslations, string>;
|
|
2
|
-
declare type Join<S1, S2> = S1 extends string ? S2 extends string ? `${S1}.${S2}` :
|
|
2
|
+
declare type Join<S1, S2> = S1 extends string ? S2 extends string ? `${S1}.${S2}` : S1 : never;
|
|
3
3
|
export declare type TranslationsPaths<T, TAddRoot extends true | undefined = undefined> = {
|
|
4
|
-
[K in keyof T]: T[K] extends Record<string, unknown> ? K extends string ? TAddRoot extends true ? `${K}` | Join<K, TranslationsPaths<T[K]>> : Join<K, TranslationsPaths<T[K]>> :
|
|
4
|
+
[K in keyof T]: T[K] extends Record<string, unknown> ? K extends string ? TAddRoot extends true ? `${K}` | Join<K, TranslationsPaths<T[K]>> : Join<K, TranslationsPaths<T[K]>> : K : K;
|
|
5
5
|
}[keyof T];
|
|
6
6
|
export declare type TranslationsAllPaths = {
|
|
7
7
|
[N in Extract<keyof Koine.NextTranslations, string>]: {
|
|
8
|
-
[K in Extract<keyof Koine.NextTranslations[N], string>]: Koine.NextTranslations[N][K] extends Array<Record<string, unknown>> ?
|
|
8
|
+
[K in Extract<keyof Koine.NextTranslations[N], string>]: Koine.NextTranslations[N][K] extends Array<Record<string, unknown>> ? `${N}:${K}` : Koine.NextTranslations[N][K] extends Record<string, unknown> ? Join<K extends string ? `${N}:${K}` : `${N}:`, TranslationsPaths<Koine.NextTranslations[N][K], true>> : Koine.NextTranslations[N][K] extends Array<string | number | boolean> ? `${N}:${K}` : Koine.NextTranslations[N][K] extends string | number | boolean ? K extends string ? `${N}:${K}` : `${N}:` : ``;
|
|
9
9
|
}[Extract<keyof Koine.NextTranslations[N], string>];
|
|
10
10
|
}[Extract<keyof Koine.NextTranslations, string>];
|
|
11
11
|
/**
|
package/package.json
CHANGED
|
@@ -6,9 +6,9 @@
|
|
|
6
6
|
"dependencies": {
|
|
7
7
|
"react": "^16.8 || ^17 || ^18",
|
|
8
8
|
"next": "^12.1.6",
|
|
9
|
-
"@koine/utils": "1.0.
|
|
9
|
+
"@koine/utils": "1.0.18",
|
|
10
10
|
"framer-motion": "^6.3.4",
|
|
11
|
-
"@koine/react": "1.0.
|
|
11
|
+
"@koine/react": "1.0.18",
|
|
12
12
|
"styled-components": "^5.3.5",
|
|
13
13
|
"@mui/base": "^5.0.0-alpha.82",
|
|
14
14
|
"react-icons": "^4.3.1",
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"next-seo": "^5.4.0"
|
|
30
30
|
},
|
|
31
31
|
"peerDependencies": {},
|
|
32
|
-
"version": "1.0.
|
|
32
|
+
"version": "1.0.18",
|
|
33
33
|
"module": "./index.js",
|
|
34
34
|
"types": "./index.d.ts"
|
|
35
35
|
}
|