mirror of
https://git.ddmt.top/ddmt/ddmt-tool.git
synced 2026-03-23 05:17:06 +00:00
feat(number): 优化函数文档并添加新功能
- 为所有函数添加了详细的 JSDoc 注释 - 新增 objectToJSON 函数 - 更新了 index.js 和类型定义文件
This commit is contained in:
8
types/index.d.ts
vendored
8
types/index.d.ts
vendored
@@ -8,6 +8,10 @@ declare module 'ddmt-tool' {
|
||||
export function randomNum(minNum: number): number;
|
||||
export function randomNum(minNum: number, maxNum: number): number;
|
||||
export function nextArray(arr: any[], index: number): any[];
|
||||
export function parseNginxLog(log: string): object;
|
||||
|
||||
export function ArrayDeHeavy(arr: any[]): any[];
|
||||
export function getRelativeTime(date: Date): string;
|
||||
export function parseNginxLog(log: string): { ip: string, timestamp: string, method: string, url: string, status: number, responseSize: number, referrer: string, userAgent: string } | null;
|
||||
export function toCookiesArray(cookies: string): { [key: string]: string };
|
||||
export function updateCookies(cookies: string, setCookieArray: string[]): string;
|
||||
export function objectToJSON(ObjectText: string): string | undefined;
|
||||
}
|
||||
Reference in New Issue
Block a user