entropic-bond 1.34.13 → 1.34.14
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.
|
@@ -7,6 +7,7 @@ export declare type ClassPropNames<T> = {
|
|
|
7
7
|
}[keyof T];
|
|
8
8
|
export declare type ClassProps<T> = Pick<T, ClassPropNames<T>>;
|
|
9
9
|
export declare type SomeClassProps<T> = Partial<ClassProps<T>>;
|
|
10
|
+
export declare type SomeClassPropNames<T> = Partial<ClassPropNames<T>>;
|
|
10
11
|
export declare type ClassArrayPropNames<T> = {
|
|
11
12
|
[K in keyof T]: T[K] extends unknown[] | Readonly<unknown[]> ? K : never;
|
|
12
13
|
}[keyof T];
|
|
@@ -15,3 +16,6 @@ export declare type Elements<T extends ReadonlyArray<any> | ArrayLike<any> | Rec
|
|
|
15
16
|
export interface Collection<T> {
|
|
16
17
|
[key: string | symbol]: T;
|
|
17
18
|
}
|
|
19
|
+
export declare type ClassPropNamesOfType<T, U> = {
|
|
20
|
+
[K in keyof T]: T[K] extends U ? K : never;
|
|
21
|
+
}[keyof T];
|