This commit is contained in:
ddmt 2024-10-10 16:10:03 +08:00
parent 69e319c91c
commit 13fd65ff50
3 changed files with 9 additions and 13 deletions

13
package-lock.json generated
View File

@ -1,13 +0,0 @@
{
"name": "ddmt-tool",
"version": "1.0.7",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "ddmt-tool",
"version": "1.0.7",
"license": "MIT"
}
}
}

View File

@ -4,6 +4,7 @@
"description": "A utility library that provides commonly used functions to simplify everyday development tasks. Whether it's string manipulation, array operations, or other frequent functionalities, `ddmt-tool` helps you work more efficiently.", "description": "A utility library that provides commonly used functions to simplify everyday development tasks. Whether it's string manipulation, array operations, or other frequent functionalities, `ddmt-tool` helps you work more efficiently.",
"main": "index.js", "main": "index.js",
"type": "module", "type": "module",
"types": "types/index.d.ts",
"scripts": { "scripts": {
"dev": "node index.js" "dev": "node index.js"
}, },

8
types/index.d.ts vendored Normal file
View File

@ -0,0 +1,8 @@
declare module 'ddmt-tool' {
export function animateStart(event: HTMLElement, className: string, forceExecute?: boolean): void;
export function randomNum(minNum: number): number;
export function randomNum(minNum: number, maxNum: number): number;
export function nextArray(arr: any[], index: number): any[];
}