@augment-vir/common
Advanced tools
Comparing version 29.1.7 to 29.1.8
@@ -0,7 +1,8 @@ | ||
import { RemovePartial } from './object'; | ||
/** @deprecated This is the same as hasKey */ | ||
export declare function isKeyof<ObjectGeneric>(key: PropertyKey, object: ObjectGeneric): key is keyof ObjectGeneric; | ||
export declare function getObjectTypedKeys<ObjectGeneric extends unknown>(input: ObjectGeneric): Array<keyof ObjectGeneric>; | ||
export declare function getObjectTypedValues<ObjectGeneric extends unknown>(input: ObjectGeneric): Required<ObjectGeneric>[keyof ObjectGeneric][]; | ||
export declare function getObjectTypedEntries<ObjectGeneric extends unknown>(input: ObjectGeneric): [keyof ObjectGeneric, Required<ObjectGeneric>[keyof ObjectGeneric]][]; | ||
export declare function getObjectTypedKeys<ObjectGeneric>(input: ObjectGeneric): Array<keyof ObjectGeneric>; | ||
export declare function getObjectTypedValues<ObjectGeneric>(input: ObjectGeneric): RemovePartial<ObjectGeneric>[keyof RemovePartial<ObjectGeneric>][]; | ||
export declare function getObjectTypedEntries<ObjectGeneric>(input: ObjectGeneric): [keyof ObjectGeneric, RemovePartial<ObjectGeneric>[keyof RemovePartial<ObjectGeneric>]][]; | ||
export declare function getEntriesSortedByKey(input: object): [string, unknown][]; | ||
export declare function typedObjectFromEntries<KeyType extends PropertyKey, ValueType>(entries: ReadonlyArray<Readonly<[KeyType, ValueType]>>): Record<KeyType, ValueType>; |
@@ -19,1 +19,2 @@ import { Writable } from 'type-fest'; | ||
}; | ||
export type RemovePartial<Input> = Input extends Partial<Record<infer K extends PropertyKey, infer V>> ? Required<Record<K, V>> : Required<Input>; |
{ | ||
"name": "@augment-vir/common", | ||
"version": "29.1.7", | ||
"version": "29.1.8", | ||
"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
166918
4259