Comparing version 1.0.6 to 1.0.7
@@ -42,1 +42,12 @@ /** 内存的容量常量定义 */ | ||
} | ||
/** 是或否 */ | ||
export declare enum YesOrNo { | ||
yes = 1, | ||
no = 0 | ||
} | ||
/** | ||
* 选项类型 | ||
*/ | ||
export declare type TOptions<T> = { | ||
[P in keyof T]?: NonNullable<any>; | ||
}; |
"use strict"; | ||
// 这里定义一些必要的常量 | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.DatetimeConstant = exports.error_common = exports.MemorySize = void 0; | ||
exports.YesOrNo = exports.DatetimeConstant = exports.error_common = exports.MemorySize = void 0; | ||
/** 内存的容量常量定义 */ | ||
@@ -49,1 +49,7 @@ var MemorySize; | ||
})(DatetimeConstant = exports.DatetimeConstant || (exports.DatetimeConstant = {})); | ||
/** 是或否 */ | ||
var YesOrNo; | ||
(function (YesOrNo) { | ||
YesOrNo[YesOrNo["yes"] = 1] = "yes"; | ||
YesOrNo[YesOrNo["no"] = 0] = "no"; | ||
})(YesOrNo = exports.YesOrNo || (exports.YesOrNo = {})); |
@@ -46,1 +46,15 @@ // 这里定义一些必要的常量 | ||
} | ||
/** 是或否 */ | ||
export enum YesOrNo { | ||
yes = 1, | ||
no = 0 | ||
} | ||
/** | ||
* 选项类型 | ||
*/ | ||
export declare type TOptions<T> = { | ||
// eslint-disable-next-line @typescript-eslint/no-explicit-any | ||
[P in keyof T]?: NonNullable<any>; | ||
}; |
{ | ||
"name": "xmcommon", | ||
"version": "1.0.6", | ||
"version": "1.0.7", | ||
"description": "一个基于javascript的常用功能扩展库! 使用TypeScript重构!", | ||
@@ -5,0 +5,0 @@ "main": "./dist/index.js", |
@@ -34,2 +34,5 @@ # xmcommon | ||
# 版本变更说明 | ||
## 1.0.7 2022-07-12 | ||
- 增加enum YesOrNo枚举 | ||
- 增加TOptions<T>类型 | ||
## 1.0.6 2022-07-11 | ||
@@ -36,0 +39,0 @@ - 增加MD5FromStringList,MD5FromBufferList,MD5FromBuffer三个方法 |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
335985
9278
271