@karmaniverous/entity-tools
Advanced tools
Comparing version 0.3.1 to 0.4.0
@@ -251,2 +251,12 @@ /** | ||
export { type DefaultTranscodeMap, type Entity, type Exactify, type Nil, type PartialTranscodable, type PropertiesNotOfType, type PropertiesOfType, type SortOrder, type TranscodableProperties, type TranscodeMap, type Transcodes, type UntranscodableProperties, defaultTranscodes, isNil, sort }; | ||
/** | ||
* Returns an object type with specific properties rendered required and non-nullable. | ||
* | ||
* @typeParam T - The object type to modify. | ||
* @typeParam K - Union of keys of `T` to render required and non-nullable. | ||
*/ | ||
type WithRequiredAndNonNullable<T, K extends keyof T> = T & { | ||
[P in K]-?: NonNullable<T[P]>; | ||
}; | ||
export { type DefaultTranscodeMap, type Entity, type Exactify, type Nil, type PartialTranscodable, type PropertiesNotOfType, type PropertiesOfType, type SortOrder, type TranscodableProperties, type TranscodeMap, type Transcodes, type UntranscodableProperties, type WithRequiredAndNonNullable, defaultTranscodes, isNil, sort }; |
@@ -129,3 +129,3 @@ { | ||
"types": "dist/index.d.ts", | ||
"version": "0.3.1", | ||
"version": "0.4.0", | ||
"dependencies": { | ||
@@ -132,0 +132,0 @@ "radash": "^12.1.0" |
24847
558