@shimotsuki/core 2.0.30 → 2.0.32
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/index.d.ts +2 -13
- package/dist/index.js +2881 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1025,19 +1025,8 @@ declare class Manager {
|
|
|
1025
1025
|
}) => this;
|
|
1026
1026
|
/**启动 */
|
|
1027
1027
|
boot(): Promise<void>;
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
* 支持三种模式:
|
|
1031
|
-
* 1. 合并对象属性:use(existingObject, config)
|
|
1032
|
-
* 2. 修改/创建属性:use(propertyName, value)
|
|
1033
|
-
*/
|
|
1034
|
-
use<T extends object>(target: T, source: Partial<T>): this;
|
|
1035
|
-
use<K extends keyof this>(key: K, value: this[K]): this;
|
|
1036
|
-
use<K extends string>(key: K, value: any): this;
|
|
1037
|
-
/** 处理对象合并 */
|
|
1038
|
-
private handleObjectMerge;
|
|
1039
|
-
/** 处理属性设置 */
|
|
1040
|
-
private handlePropertySet;
|
|
1028
|
+
/**合并对象 */
|
|
1029
|
+
merge<K extends keyof Manager, T extends object>(target: K, source: T): this;
|
|
1041
1030
|
}
|
|
1042
1031
|
declare const cat: Manager;
|
|
1043
1032
|
|