@xylabs/object
Advanced tools
Comparing version 4.2.2 to 4.3.0
import type { TypedKey } from '@xylabs/promise'; | ||
/** | ||
* Any object, which means that it does not enforce the set of fields that it has. Extending from AnyObject | ||
* will result in a type that includes the universal set of field names | ||
*/ | ||
export type AnyObject = Record<TypedKey, unknown>; | ||
//# sourceMappingURL=AnyObject.d.ts.map |
@@ -0,1 +1,5 @@ | ||
/** | ||
* An empty object, which means that it does enforce the set of field names, defaulting to an empty set until | ||
* extended from, which then adds only those additional fields | ||
*/ | ||
export type EmptyObject<T extends object = object> = { | ||
@@ -2,0 +6,0 @@ [K in keyof T]?: never; |
@@ -14,2 +14,3 @@ export * from './AnyObject.ts'; | ||
export * from './omitBy.ts'; | ||
export * from './Optional.ts'; | ||
export * from './Override.ts'; | ||
@@ -16,0 +17,0 @@ export * from './PartialRecord.ts'; |
@@ -0,1 +1,2 @@ | ||
/** @deprecated use Partial<Record<>> instead */ | ||
export type PartialRecord<K extends keyof any, T> = { | ||
@@ -2,0 +3,0 @@ [P in K]?: T; |
{ | ||
"name": "@xylabs/object", | ||
"version": "4.2.2", | ||
"version": "4.3.0", | ||
"description": "Primary SDK for using XYO Protocol 2.0", | ||
@@ -32,9 +32,9 @@ "homepage": "https://xyo.network", | ||
"dependencies": { | ||
"@xylabs/assert": "^4.2.2", | ||
"@xylabs/logger": "^4.2.2", | ||
"@xylabs/promise": "^4.2.2" | ||
"@xylabs/assert": "^4.3.0", | ||
"@xylabs/logger": "^4.3.0", | ||
"@xylabs/promise": "^4.3.0" | ||
}, | ||
"devDependencies": { | ||
"@xylabs/ts-scripts-yarn3": "^4.2.1", | ||
"@xylabs/tsconfig": "^4.2.1", | ||
"@xylabs/ts-scripts-yarn3": "^4.2.3", | ||
"@xylabs/tsconfig": "^4.2.3", | ||
"typescript": "^5.6.3" | ||
@@ -41,0 +41,0 @@ }, |
@@ -14,2 +14,3 @@ export * from './AnyObject.ts' | ||
export * from './omitBy.ts' | ||
export * from './Optional.ts' | ||
export * from './Override.ts' | ||
@@ -16,0 +17,0 @@ export * from './PartialRecord.ts' |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
115345
76
983
Updated@xylabs/assert@^4.3.0
Updated@xylabs/logger@^4.3.0
Updated@xylabs/promise@^4.3.0