@zwa73/utils 1.0.67 → 1.0.69
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/UtilInterfaces.d.ts
CHANGED
|
@@ -102,7 +102,8 @@ export type MethodsThisAs<Methods, T> = {
|
|
|
102
102
|
export declare function assertThisAs<Self, T>(prototype: MethodsThisAs<Self, T>): void;
|
|
103
103
|
/**可自动混入的类型 */
|
|
104
104
|
export type MixinAble<Mixin> = {
|
|
105
|
-
|
|
105
|
+
/**可混入的字段 */
|
|
106
|
+
readonly MIXIN_FIELDS: ReadonlyArray<keyof Mixin>;
|
|
106
107
|
};
|
|
107
108
|
/**自动混入的组合类 */
|
|
108
109
|
export type ComposedMixinable<B extends object, Ms extends Array<unknown>> = Ms extends [infer M, ...infer Rest] ? M extends MixinAble<M> ? ComposedMixinable<ComposedClassPart<B, M, M['MIXIN_FIELDS'][number]>, Rest> : B : B;
|
package/package.json
CHANGED
package/src/UtilInterfaces.ts
CHANGED
|
@@ -158,7 +158,10 @@ export type MethodsThisAs<Methods, T> = {
|
|
|
158
158
|
export function assertThisAs<Self,T>(prototype: MethodsThisAs<Self, T>) {}
|
|
159
159
|
|
|
160
160
|
/**可自动混入的类型 */
|
|
161
|
-
export type MixinAble<Mixin> = {
|
|
161
|
+
export type MixinAble<Mixin> = {
|
|
162
|
+
/**可混入的字段 */
|
|
163
|
+
readonly MIXIN_FIELDS:ReadonlyArray<keyof Mixin>
|
|
164
|
+
};
|
|
162
165
|
|
|
163
166
|
/**自动混入的组合类 */
|
|
164
167
|
export type ComposedMixinable<B extends object, Ms extends Array<unknown>> =
|