@vesperjs/shared 0.4.0 → 0.6.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.
Files changed (2) hide show
  1. package/dist/index.d.mts +6 -7
  2. package/package.json +8 -8
package/dist/index.d.mts CHANGED
@@ -1,5 +1,4 @@
1
- import * as _$_vue_reactivity0 from "@vue/reactivity";
2
- import { Ref } from "@vue/reactivity";
1
+ import { ComputedRef, Ref, WritableComputedRef } from "@vue/reactivity";
3
2
 
4
3
  //#region src/types/error/backend-error-info.d.ts
5
4
  interface BackendErrorInfo<BER> {
@@ -34,14 +33,14 @@ declare const useExternalErrors: <P extends string>({
34
33
  }: {
35
34
  flash: Ref<Flash>;
36
35
  }) => {
37
- externalErrors: _$_vue_reactivity0.WritableComputedRef<Partial<Record<P, string[]>>, Partial<Record<P, string[]>>>;
36
+ externalErrors: WritableComputedRef<Partial<Record<P, string[]>>, Partial<Record<P, string[]>>>;
38
37
  clearExternalErrors: () => void;
39
38
  isSuccess: () => boolean;
40
39
  };
41
40
  //#endregion
42
41
  //#region src/composables/backend/error/use-backend-error-info.d.ts
43
42
  declare const useBackendErrorInfo: <R extends object>() => {
44
- backendErrorInfo: _$_vue_reactivity0.ComputedRef<BackendErrorInfo<R>>;
43
+ backendErrorInfo: ComputedRef<BackendErrorInfo<R>>;
45
44
  clearBackendErrorInfo: () => void;
46
45
  };
47
46
  //#endregion
@@ -55,20 +54,20 @@ declare const useEntity: <M extends object, R extends object = M>() => {
55
54
  create: ({
56
55
  from
57
56
  }: {
58
- from: R | M;
57
+ from: M | R;
59
58
  }) => M;
60
59
  copy: ({
61
60
  from,
62
61
  to
63
62
  }: {
64
- from: R | M;
63
+ from: M | R;
65
64
  to: M;
66
65
  }) => void;
67
66
  };
68
67
  //#endregion
69
68
  //#region src/composables/use-flash.d.ts
70
69
  declare const useFlash: () => {
71
- flash: _$_vue_reactivity0.Ref<{
70
+ flash: Ref<{
72
71
  notice?: string | undefined;
73
72
  alert?: string | undefined;
74
73
  }, Flash | {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vesperjs/shared",
3
- "version": "0.4.0",
3
+ "version": "0.6.0",
4
4
  "keywords": [
5
5
  "Nuxt",
6
6
  "vue.js"
@@ -24,18 +24,18 @@
24
24
  },
25
25
  "devDependencies": {
26
26
  "@eslint/js": "^10.0.1",
27
- "@typescript-eslint/eslint-plugin": "^8.59.1",
28
- "@typescript-eslint/parser": "^8.59.1",
27
+ "@typescript-eslint/eslint-plugin": "^8.59.2",
28
+ "@typescript-eslint/parser": "^8.59.2",
29
29
  "@vue/eslint-config-typescript": "^14.7.0",
30
- "eslint": "^10.2.1",
31
- "eslint-plugin-vue": "^10.9.0",
32
- "oxfmt": "^0.47.0",
30
+ "eslint": "^10.3.0",
31
+ "eslint-plugin-vue": "^10.9.1",
32
+ "oxfmt": "^0.48.0",
33
33
  "tsdown": "^0.21.10",
34
34
  "typescript": "^6.0.3",
35
- "typescript-eslint": "^8.59.1"
35
+ "typescript-eslint": "^8.59.2"
36
36
  },
37
37
  "peerDependencies": {
38
- "@vue/reactivity": "^3.5.33 || ^3.6.0-beta.10"
38
+ "@vue/reactivity": "^3.5.34 || ^3.6.0-beta.10"
39
39
  },
40
40
  "scripts": {
41
41
  "build": "tsdown --dts",