优化matcher内部实现改为querysystem
完善type类型 更新文档
This commit is contained in:
@@ -8,7 +8,7 @@ export class NumberExtension {
|
||||
* @param value 要转换的值
|
||||
* @returns 转换后的数字,如果值为undefined则返回0
|
||||
*/
|
||||
public static toNumber(value: any): number {
|
||||
public static toNumber(value: unknown): number {
|
||||
if (value == undefined) return 0;
|
||||
return Number(value);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user