dolphin-components 2.2.14 → 2.2.16

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.ts CHANGED
@@ -129,7 +129,7 @@ export declare interface ContentTitle {
129
129
  count?: number;
130
130
  }
131
131
 
132
- export declare const CreateDebounce: (callback: () => void, delay: number) => DebounceHandler;
132
+ export declare const CreateDebounce: <T>(callback: (arg?: T) => void, delay: number) => DebounceHandler<T>;
133
133
 
134
134
  export declare const CreateShortCutKey: (keyStructure: string, callback: (e: KeyboardEvent) => void) => {
135
135
  destroy(): void;
@@ -200,8 +200,8 @@ export declare interface DateSelectorProps {
200
200
  classValue?: string;
201
201
  }
202
202
 
203
- declare type DebounceHandler = {
204
- run: () => void;
203
+ declare type DebounceHandler<T> = {
204
+ run: (arg?: T) => void;
205
205
  cancel: () => void;
206
206
  };
207
207
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "dolphin-components",
3
3
  "private": false,
4
- "version": "2.2.14",
4
+ "version": "2.2.16",
5
5
  "type": "module",
6
6
  "files": [
7
7
  "dist"
@@ -46,14 +46,14 @@
46
46
  "vue-router": "^4.5.0"
47
47
  },
48
48
  "devDependencies": {
49
- "@types/node": "^24.0.10",
49
+ "@types/node": "^24.0.12",
50
50
  "@vitejs/plugin-vue": "^6.0.0",
51
51
  "@vue/tsconfig": "^0.7.0",
52
52
  "path": "^0.12.7",
53
53
  "prettier": "3.6.2",
54
54
  "rollup-plugin-typescript2": "^0.36.0",
55
55
  "typescript": "~5.8.3",
56
- "vite": "^7.0.0",
56
+ "vite": "^7.0.3",
57
57
  "vite-plugin-dts": "^4.5.4",
58
58
  "vue-tsc": "^3.0.1"
59
59
  },