@hz-9/a5-core 0.2.0-alpha.20 → 0.2.0-alpha.21
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/all.d.ts
CHANGED
|
@@ -488,7 +488,7 @@ export declare const DEFAULT_LOG_LEVELS: LogLevel[];
|
|
|
488
488
|
*
|
|
489
489
|
* @public
|
|
490
490
|
*/
|
|
491
|
-
export declare type Equal<X, Y> = (<T>() => T extends X ? 1 : 2) extends
|
|
491
|
+
export declare type Equal<X, Y> = (<T>() => T extends X ? 1 : 2) extends <T>() => T extends Y ? 1 : 2 ? true : false;
|
|
492
492
|
|
|
493
493
|
/**
|
|
494
494
|
* @public
|
|
@@ -598,7 +598,7 @@ export declare abstract class IA5LogModule {
|
|
|
598
598
|
*
|
|
599
599
|
* @public
|
|
600
600
|
*/
|
|
601
|
-
export declare type IsAny<T> = 0 extends
|
|
601
|
+
export declare type IsAny<T> = 0 extends 1 & T ? true : false;
|
|
602
602
|
|
|
603
603
|
/**
|
|
604
604
|
* 类型断言工具 - 判断是否为 false
|
|
@@ -39,13 +39,13 @@ export type NotEqual<X, Y> = true extends Equal<X, Y> ? false : true;
|
|
|
39
39
|
*
|
|
40
40
|
* @public
|
|
41
41
|
*/
|
|
42
|
-
export type Equal<X, Y> = (<T>() => T extends X ? 1 : 2) extends
|
|
42
|
+
export type Equal<X, Y> = (<T>() => T extends X ? 1 : 2) extends <T>() => T extends Y ? 1 : 2 ? true : false;
|
|
43
43
|
/**
|
|
44
44
|
* 类型断言工具 - 判断是否为 any 类型
|
|
45
45
|
*
|
|
46
46
|
* @public
|
|
47
47
|
*/
|
|
48
|
-
export type IsAny<T> = 0 extends
|
|
48
|
+
export type IsAny<T> = 0 extends 1 & T ? true : false;
|
|
49
49
|
/**
|
|
50
50
|
* 类型断言工具 - 判断不是 any 类型
|
|
51
51
|
*
|