Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

type-plus

Package Overview
Dependencies
Maintainers
1
Versions
169
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

type-plus - npm Package Compare versions

Comparing version 1.6.0 to 1.6.1

8

lib/Required.d.ts

@@ -1,6 +0,2 @@

export declare type RequiredPick<T, U extends keyof T> = {
[P in U]-?: Exclude<T[P], undefined>;
} & Pick<T, Exclude<keyof T, U>>;
export declare type RequiredExcept<T, U extends keyof T> = {
[P in Exclude<keyof T, U>]-?: Exclude<T[P], undefined>;
} & Pick<T, U>;
export declare type RequiredPick<T, U extends keyof T> = Required<Pick<T, U>> & Pick<T, Exclude<keyof T, U>>;
export declare type RequiredExcept<T, U extends keyof T> = Required<Pick<T, Exclude<keyof T, U>>> & Pick<T, U>;
{
"name": "type-plus",
"description": "Provides additional types for `typescript`.",
"version": "1.6.0",
"version": "1.6.1",
"homepage": "https://github.com/unional/type-plus",

@@ -6,0 +6,0 @@ "bugs": {

@@ -1,7 +0,3 @@

export type PartialPick<T, U extends keyof T> = {
[P in keyof T]: P extends U ? T[P] | undefined : T[P]
}
export type PartialPick<T, U extends keyof T> = Pick<T, Exclude<keyof T, U>> & Partial<Pick<T, U>>
export type PartialExcept<T, U extends keyof T> = {
[P in keyof T]: P extends U ? T[P] : T[P] | undefined
}
export type PartialExcept<T, U extends keyof T> = Pick<T, U> & Partial<Pick<T, Exclude<keyof T, U>>>
// Thanks [jack-williams](https://github.com/jack-williams) for the [solution](https://github.com/Microsoft/TypeScript/issues/29269#issuecomment-451602962)
export type RequiredPick<T, U extends keyof T> = {
[P in U]-?: Exclude<T[P], undefined>
} & Pick<T, Exclude<keyof T, U>>
export type RequiredPick<T, U extends keyof T> = Required<Pick<T, U>> & Pick<T, Exclude<keyof T, U>>
export type RequiredExcept<T, U extends keyof T> = {
[P in Exclude<keyof T, U>]-?: Exclude<T[P], undefined>
} & Pick<T, U>
export type RequiredExcept<T, U extends keyof T> = Required<Pick<T, Exclude<keyof T, U>>> & Pick<T, U>
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