site-config-stack 4.0.6 → 4.0.8

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.cts CHANGED
@@ -60,10 +60,18 @@ type MaybeComputedRef<T> = T | (() => T) | ComputedRef<T> | Ref<T>;
60
60
  type MaybeComputedRefEntries<T> = {
61
61
  [key in keyof T]?: MaybeComputedRef<T[key]>;
62
62
  };
63
- type SiteConfigInput = Omit<MaybeComputedRefEntries<Partial<SiteConfigResolved>>, '_context' | 'indexable'> & {
63
+ /**
64
+ * Strip the string index signature from a type so mapped types preserve
65
+ * the declared named keys (required for autocomplete and type checking).
66
+ */
67
+ type KnownKeys<T> = {
68
+ [K in keyof T as string extends K ? never : number extends K ? never : K]: T[K];
69
+ };
70
+ type SiteConfigInput = Omit<MaybeComputedRefEntries<KnownKeys<SiteConfigResolved>>, '_context' | 'indexable'> & {
64
71
  _context?: string;
65
72
  _priority?: number;
66
73
  indexable?: MaybeComputedRef<string | boolean>;
74
+ [key: string]: any;
67
75
  };
68
76
  interface GetSiteConfigOptions {
69
77
  debug?: boolean;
package/dist/index.d.mts CHANGED
@@ -60,10 +60,18 @@ type MaybeComputedRef<T> = T | (() => T) | ComputedRef<T> | Ref<T>;
60
60
  type MaybeComputedRefEntries<T> = {
61
61
  [key in keyof T]?: MaybeComputedRef<T[key]>;
62
62
  };
63
- type SiteConfigInput = Omit<MaybeComputedRefEntries<Partial<SiteConfigResolved>>, '_context' | 'indexable'> & {
63
+ /**
64
+ * Strip the string index signature from a type so mapped types preserve
65
+ * the declared named keys (required for autocomplete and type checking).
66
+ */
67
+ type KnownKeys<T> = {
68
+ [K in keyof T as string extends K ? never : number extends K ? never : K]: T[K];
69
+ };
70
+ type SiteConfigInput = Omit<MaybeComputedRefEntries<KnownKeys<SiteConfigResolved>>, '_context' | 'indexable'> & {
64
71
  _context?: string;
65
72
  _priority?: number;
66
73
  indexable?: MaybeComputedRef<string | boolean>;
74
+ [key: string]: any;
67
75
  };
68
76
  interface GetSiteConfigOptions {
69
77
  debug?: boolean;
package/dist/index.d.ts CHANGED
@@ -60,10 +60,18 @@ type MaybeComputedRef<T> = T | (() => T) | ComputedRef<T> | Ref<T>;
60
60
  type MaybeComputedRefEntries<T> = {
61
61
  [key in keyof T]?: MaybeComputedRef<T[key]>;
62
62
  };
63
- type SiteConfigInput = Omit<MaybeComputedRefEntries<Partial<SiteConfigResolved>>, '_context' | 'indexable'> & {
63
+ /**
64
+ * Strip the string index signature from a type so mapped types preserve
65
+ * the declared named keys (required for autocomplete and type checking).
66
+ */
67
+ type KnownKeys<T> = {
68
+ [K in keyof T as string extends K ? never : number extends K ? never : K]: T[K];
69
+ };
70
+ type SiteConfigInput = Omit<MaybeComputedRefEntries<KnownKeys<SiteConfigResolved>>, '_context' | 'indexable'> & {
64
71
  _context?: string;
65
72
  _priority?: number;
66
73
  indexable?: MaybeComputedRef<string | boolean>;
74
+ [key: string]: any;
67
75
  };
68
76
  interface GetSiteConfigOptions {
69
77
  debug?: boolean;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "site-config-stack",
3
3
  "type": "module",
4
- "version": "4.0.6",
4
+ "version": "4.0.8",
5
5
  "description": "Shared site configuration utilities.",
6
6
  "license": "MIT",
7
7
  "funding": "https://github.com/sponsors/harlan-zw",
@@ -43,7 +43,7 @@
43
43
  "ufo": "^1.6.3"
44
44
  },
45
45
  "devDependencies": {
46
- "vue": "^3.5.31"
46
+ "vue": "^3.5.32"
47
47
  },
48
48
  "scripts": {
49
49
  "lint": "eslint . --fix",