@goast/core 0.2.0 → 0.2.1
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/package.json
CHANGED
|
@@ -1,7 +1,4 @@
|
|
|
1
|
-
type
|
|
2
|
-
[P in Exclude<keyof T, keyof U>]: T[P];
|
|
3
|
-
} & U;
|
|
4
|
-
export type Merge<U extends unknown[]> = U extends [infer A, ...infer R] ? MergeTwo<A, Merge<R>> : {};
|
|
1
|
+
export type Merge<U extends unknown[]> = U extends [infer A, ...infer R] ? A & Merge<R> : {};
|
|
5
2
|
export type OptionalProperties<T, K extends keyof T> = Omit<T, K> & Partial<Pick<T, K>>;
|
|
6
3
|
export type RequiredProperties<T, K extends keyof T> = Omit<T, K> & Required<Pick<T, K>>;
|
|
7
4
|
export type ArrayItem<T> = T extends (infer U)[] ? U : never;
|