@augment-vir/common
Advanced tools
Comparing version 21.3.2 to 21.3.3
import { AnyFunction } from '../function'; | ||
import { ArrayElement } from '../type'; | ||
import { NestedKeys } from './nested-keys'; | ||
type InnerPickDeep<OriginalObjectGeneric extends object, DeepKeys extends any[]> = DeepKeys extends [infer CurrentLevelPick, ...infer RemainingKeys] ? { | ||
[CurrentProp in Extract<CurrentLevelPick, keyof OriginalObjectGeneric>]: OriginalObjectGeneric[CurrentProp] extends AnyFunction ? OriginalObjectGeneric[CurrentProp] : OriginalObjectGeneric[CurrentProp] extends Array<any> ? OriginalObjectGeneric[CurrentProp] : OriginalObjectGeneric[CurrentProp] extends object ? InnerPickDeep<OriginalObjectGeneric[CurrentProp], RemainingKeys> : OriginalObjectGeneric[CurrentProp]; | ||
[CurrentProp in Extract<CurrentLevelPick, keyof OriginalObjectGeneric>]: OriginalObjectGeneric[CurrentProp] extends AnyFunction ? OriginalObjectGeneric[CurrentProp] : OriginalObjectGeneric[CurrentProp] extends Array<any> ? Array<InnerPickDeep<ArrayElement<OriginalObjectGeneric[CurrentProp]>, RemainingKeys>> : OriginalObjectGeneric[CurrentProp] extends ReadonlyArray<any> ? ReadonlyArray<InnerPickDeep<ArrayElement<OriginalObjectGeneric[CurrentProp]>, RemainingKeys>> : OriginalObjectGeneric[CurrentProp] extends object ? InnerPickDeep<OriginalObjectGeneric[CurrentProp], RemainingKeys> : OriginalObjectGeneric[CurrentProp]; | ||
} : DeepKeys extends [] ? OriginalObjectGeneric : DeepKeys extends [infer CurrentLevelPick] ? CurrentLevelPick extends keyof OriginalObjectGeneric ? Pick<OriginalObjectGeneric, CurrentLevelPick> : never : never; | ||
@@ -6,0 +7,0 @@ /** |
{ | ||
"name": "@augment-vir/common", | ||
"version": "21.3.2", | ||
"version": "21.3.3", | ||
"homepage": "https://github.com/electrovir/augment-vir/tree/main/packages/common", | ||
@@ -5,0 +5,0 @@ "bugs": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
171885
4159