@svadmin/core 0.23.5 → 0.24.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/package.json +1 -1
- package/src/query-hooks.svelte.ts +2 -2
- package/src/types.ts +1 -1
package/package.json
CHANGED
|
@@ -30,11 +30,11 @@ function extendQuery<Q extends object, E extends Record<string, unknown>>(
|
|
|
30
30
|
if (typeof prop === 'string' && prop in extensions) {
|
|
31
31
|
return extensions[prop as keyof E];
|
|
32
32
|
}
|
|
33
|
-
return
|
|
33
|
+
return target[prop as keyof Q];
|
|
34
34
|
},
|
|
35
35
|
has(target, prop) {
|
|
36
36
|
if (typeof prop === 'string' && prop in extensions) return true;
|
|
37
|
-
return
|
|
37
|
+
return prop in target;
|
|
38
38
|
},
|
|
39
39
|
}) as Q & E;
|
|
40
40
|
}
|
package/src/types.ts
CHANGED
|
@@ -298,7 +298,7 @@ export interface MenuItem {
|
|
|
298
298
|
/** Display label. Falls back to `t('menu.${name}')` if omitted */
|
|
299
299
|
label?: string;
|
|
300
300
|
/** Icon name string (maps to lucide icon set) or Svelte component */
|
|
301
|
-
icon?: string;
|
|
301
|
+
icon?: string | any;
|
|
302
302
|
/** Navigation path — omit for parent-only menu nodes */
|
|
303
303
|
href?: string;
|
|
304
304
|
/** Open in new tab (useful for external links) */
|