@i18n-micro/types 1.2.12 → 1.2.14

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.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=()=>{};exports.init=t;
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});var e=()=>{};exports.init=e;
package/dist/index.d.cts CHANGED
@@ -11,10 +11,11 @@ export interface DefineLocaleMessage {
11
11
  /**
12
12
  * Resolved translation key type.
13
13
  * - When `DefineLocaleMessage` is empty (generator not connected) — resolves to `string`.
14
- * - When `DefineLocaleMessage` has keys — resolves to a union of those keys **and** `string`,
15
- * providing autocompletion while still allowing dynamic keys.
14
+ * - When `DefineLocaleMessage` has keys — resolves to a union of those keys **and**
15
+ * `(string & {})`, providing autocompletion while still allowing dynamic keys
16
+ * (plain `| string` would collapse the union to `string`).
16
17
  */
17
- export type TranslationKey = keyof DefineLocaleMessage extends never ? string : keyof DefineLocaleMessage | string;
18
+ export type TranslationKey = Exclude<keyof DefineLocaleMessage, '__augmentation'> extends never ? string : Exclude<keyof DefineLocaleMessage, '__augmentation'> | (string & {});
18
19
  /**
19
20
  * Helper for creating typed prefixes.
20
21
  * Allows safe usage of dynamic keys.
package/dist/index.d.ts CHANGED
@@ -11,10 +11,11 @@ export interface DefineLocaleMessage {
11
11
  /**
12
12
  * Resolved translation key type.
13
13
  * - When `DefineLocaleMessage` is empty (generator not connected) — resolves to `string`.
14
- * - When `DefineLocaleMessage` has keys — resolves to a union of those keys **and** `string`,
15
- * providing autocompletion while still allowing dynamic keys.
14
+ * - When `DefineLocaleMessage` has keys — resolves to a union of those keys **and**
15
+ * `(string & {})`, providing autocompletion while still allowing dynamic keys
16
+ * (plain `| string` would collapse the union to `string`).
16
17
  */
17
- export type TranslationKey = keyof DefineLocaleMessage extends never ? string : keyof DefineLocaleMessage | string;
18
+ export type TranslationKey = Exclude<keyof DefineLocaleMessage, '__augmentation'> extends never ? string : Exclude<keyof DefineLocaleMessage, '__augmentation'> | (string & {});
18
19
  /**
19
20
  * Helper for creating typed prefixes.
20
21
  * Allows safe usage of dynamic keys.
package/dist/index.mjs CHANGED
@@ -1,5 +1,4 @@
1
- const t = () => {
2
- };
3
- export {
4
- t as init
5
- };
1
+ //#region src/index.ts
2
+ var e = () => {};
3
+ //#endregion
4
+ export { e as init };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@i18n-micro/types",
3
- "version": "1.2.12",
3
+ "version": "1.2.14",
4
4
  "description": "TypeScript definitions for the Nuxt I18n Micro ecosystem.",
5
5
  "keywords": [
6
6
  "i18n",
@@ -50,10 +50,10 @@
50
50
  "access": "public"
51
51
  },
52
52
  "devDependencies": {
53
- "publint": "^0.3.17",
54
- "vite": "^7.3.6",
55
- "vite-plugin-dts": "^4.5.4",
56
- "vitest": "^4.1.10"
53
+ "publint": "^0.3.24",
54
+ "vite": "^8.2.2",
55
+ "vite-plugin-dts": "^5.1.0",
56
+ "vitest": "^4.1.11"
57
57
  },
58
58
  "engines": {
59
59
  "node": ">=18"