vona-core 5.0.46 → 5.0.47
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.
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
import type { Constructable } from '../decorator/type/constructable.ts';
|
|
2
|
+
export type TypePartialClass<T, KEYS extends Array<keyof T> | undefined = undefined> = KEYS extends any[] ? Constructable<Partial<Pick<T, KEYS[number]>> & Omit<T, KEYS[number]>> : Constructable<Partial<T>>;
|
|
2
3
|
export declare function PartialClass<T>(classRef: Constructable<T>): Constructable<Partial<T>>;
|
|
3
|
-
export declare function PartialClass<T,
|
|
4
|
+
export declare function PartialClass<T, KEYS extends Array<keyof T>>(classRef: Constructable<T>, keys: KEYS): Constructable<Partial<Pick<T, KEYS[number]>> & Omit<T, KEYS[number]>>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { Constructable } from '../decorator/type/constructable.ts';
|
|
2
|
-
export declare function PickClass<T>(classRef: Constructable<T
|
|
3
|
-
export declare function PickClass<T,
|
|
2
|
+
export declare function PickClass<T>(classRef: Constructable<T>): Constructable<T>;
|
|
3
|
+
export declare function PickClass<T, KEYS extends Array<keyof T>>(classRef: Constructable<T>, keys: KEYS): Constructable<Pick<T, KEYS[number]>>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { Constructable } from '../decorator/type/constructable.ts';
|
|
2
|
-
export
|
|
3
|
-
export declare function PickClassInner<T,
|
|
2
|
+
export type TypePickClass<T, KEYS extends Array<keyof T> | undefined = undefined> = KEYS extends any[] ? Constructable<Pick<T, KEYS[number]>> : Constructable<T>;
|
|
3
|
+
export declare function PickClassInner<T, KEYS extends Array<keyof T> | undefined = undefined>(classTarget: Constructable, classRef: Constructable<T>, keys?: KEYS): TypePickClass<T, KEYS>;
|