Socket
Socket
Sign inDemoInstall

type-fest

Package Overview
Dependencies
Maintainers
1
Versions
154
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

type-fest - npm Package Compare versions

Comparing version 4.18.3 to 4.19.0

source/simplify-deep.d.ts

1

index.d.ts

@@ -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';

2

package.json
{
"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]} & {};
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc