@tb-dev/vue 4.0.13 → 4.0.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.
@@ -1,5 +1,5 @@
1
1
  import { MaybeNilRef } from '../../types/ref';
2
- import { Fn, MaybePromise, Option } from '@tb-dev/utils';
2
+ import { MaybePromise, Option } from '@tb-dev/utils';
3
3
  import { KeyFilter, OnKeyStrokeOptions } from '@vueuse/core';
4
4
  export type KeyDownEventHandler = Option<(event: KeyboardEvent) => MaybePromise<unknown>>;
5
5
  export type OnKeyDownOptions = Omit<OnKeyStrokeOptions, 'eventName'> & {
@@ -5,5 +5,5 @@ export declare function useMutex(options?: UseMutexOptions): {
5
5
  locked: Readonly<import('vue').Ref<boolean, boolean>>;
6
6
  acquire: () => Promise<void>;
7
7
  release: () => void;
8
- lock: <T = unknown>(fn: () => Promise<T>) => Promise<void | T>;
8
+ lock: <T = unknown>(fn: () => Promise<T>) => Promise<T>;
9
9
  };
@@ -1,7 +1,7 @@
1
1
  import { App, InjectionKey } from 'vue';
2
- export declare function getCurrentApp(): App<any>;
2
+ export declare function getCurrentApp(): any;
3
3
  export declare function setCurrentApp(app: App): void;
4
- export declare function tryGetCurrentApp(): import('@tb-dev/utils').Option<App<any>>;
4
+ export declare function tryGetCurrentApp(): any;
5
5
  export declare function trySetCurrentApp(app: App): void;
6
6
  export declare function runWithContext<T>(fn: () => T): T;
7
7
  export declare function provide<T>(key: InjectionKey<T>, value: T): void;
@@ -1,6 +1,6 @@
1
1
  import { App } from 'vue';
2
2
  import { MaybePromise, Option } from '@tb-dev/utils';
3
3
  export type ErrorHandler = (err: unknown) => MaybePromise<void>;
4
- export declare function getErrorHandler(): Option<ErrorHandler>;
4
+ export declare function getErrorHandler(): any;
5
5
  export declare function setErrorHandler(fn: ErrorHandler, app?: Option<App | boolean>): void;
6
6
  export declare function handleError(err: unknown, rethrow?: boolean): void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tb-dev/vue",
3
- "version": "4.0.13",
3
+ "version": "4.0.14",
4
4
  "description": "Vue utilities",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -24,19 +24,19 @@
24
24
  "composables"
25
25
  ],
26
26
  "dependencies": {
27
- "@tb-dev/utils": "^7.3.9",
27
+ "@tb-dev/utils": "^7.3.10",
28
28
  "@vueuse/core": "^14.2.1",
29
29
  "es-toolkit": "^1.45.1",
30
30
  "vue": "^3.5.31"
31
31
  },
32
32
  "devDependencies": {
33
- "@tb-dev/eslint-config": "^9.1.0",
33
+ "@tb-dev/eslint-config": "^9.1.1",
34
34
  "@types/node": "^25.5.0",
35
35
  "eslint": "^10.1.0",
36
36
  "tslib": "^2.8.1",
37
37
  "typedoc": "^0.28.18",
38
38
  "typedoc-plugin-mdn-links": "^5.1.1",
39
- "typescript": "~5.9.3",
39
+ "typescript": "~6.0.2",
40
40
  "vite": "^8.0.3",
41
41
  "vite-plugin-dts": "^4.5.4"
42
42
  },
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes