type-fest
Advanced tools
Comparing version 4.18.3 to 4.19.0
@@ -64,2 +64,3 @@ // Basic | ||
export type {Simplify} from './source/simplify'; | ||
export type {SimplifyDeep} from './source/simplify-deep'; | ||
export type {Jsonify} from './source/jsonify'; | ||
@@ -66,0 +67,0 @@ export type {Jsonifiable} from './source/jsonifiable'; |
{ | ||
"name": "type-fest", | ||
"version": "4.18.3", | ||
"version": "4.19.0", | ||
"description": "A collection of essential TypeScript types", | ||
@@ -5,0 +5,0 @@ "license": "(MIT OR CC0-1.0)", |
@@ -176,2 +176,3 @@ <div align="center"> | ||
- [`Simplify`](source/simplify.d.ts) - Useful to flatten the type output to improve type hints shown in editors. And also to transform an interface into a type to aide with assignability. | ||
- [`SimplifyDeep`](source/simplify-deep.d.ts) - Deeply simplifies an object type. | ||
- [`Get`](source/get.d.ts) - Get a deeply-nested property from an object using a key path, like [Lodash's `.get()`](https://lodash.com/docs/latest#get) function. | ||
@@ -178,0 +179,0 @@ - [`StringKeyOf`](source/string-key-of.d.ts) - Get keys of the given type as strings. |
@@ -14,9 +14,5 @@ import type {ConditionalSimplifyDeep} from './conditional-simplify'; | ||
import type {EnforceOptional} from './enforce-optional'; | ||
import type {SimplifyDeep} from './simplify-deep'; | ||
/** | ||
Deeply simplifies an object excluding iterables and functions. Used internally to improve the UX and accept both interfaces and type aliases as inputs. | ||
*/ | ||
export type SimplifyDeep<Type> = ConditionalSimplifyDeep<Type, Function | Iterable<unknown>, object>; | ||
/** | ||
Try to merge two record properties or return the source property value, preserving `undefined` properties values in both cases. | ||
@@ -23,0 +19,0 @@ */ |
@@ -6,5 +6,5 @@ import type {ArraySplice} from './array-splice'; | ||
import type {LiteralUnion} from './literal-union'; | ||
import type {SimplifyDeep} from './merge-deep'; | ||
import type {Paths} from './paths'; | ||
import type {SharedUnionFieldsDeep} from './shared-union-fields-deep'; | ||
import type {SimplifyDeep} from './simplify-deep'; | ||
import type {UnknownArray} from './unknown-array'; | ||
@@ -11,0 +11,0 @@ |
@@ -55,5 +55,5 @@ /** | ||
@link https://github.com/microsoft/TypeScript/issues/15300 | ||
@see SimplifyDeep | ||
@category Object | ||
*/ | ||
export type Simplify<T> = {[KeyType in keyof T]: T[KeyType]} & {}; |
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
365543
142
8836
993