Socket
Socket
Sign inDemoInstall

type-fest

Package Overview
Dependencies
0
Maintainers
1
Versions
139
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 4.13.0 to 4.13.1

5

package.json
{
"name": "type-fest",
"version": "4.13.0",
"version": "4.13.1",
"description": "A collection of essential TypeScript types",

@@ -19,3 +19,4 @@ "license": "(MIT OR CC0-1.0)",

"scripts": {
"test": "xo && tsd && tsc && node script/test/source-files-extension.js"
"test": "xo && tsd && tsc && npm run test:set-parameter-type && node script/test/source-files-extension.js",
"test:set-parameter-type": "tsc --noEmit test-d/set-parameter-type"
},

@@ -22,0 +23,0 @@ "files": [

7

source/set-parameter-type.d.ts
import type {IsUnknown} from './is-unknown';
import type {StaticPartOfArray} from './internal';
import type {StaticPartOfArray, VariablePartOfArray} from './internal';
import type {UnknownArray} from './unknown-array';

@@ -35,3 +35,6 @@

: {
[K in keyof TArray]: K extends keyof TObject ? TObject[K] : TArray[K]
[K in keyof TArray]:
number extends K
? VariablePartOfArray<TArray>[number]
: K extends keyof TObject ? TObject[K] : TArray[K]
}

@@ -38,0 +41,0 @@ : TObject extends object

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc