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

@stoplight/types

Package Overview
Dependencies
Maintainers
27
Versions
110
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@stoplight/types - npm Package Compare versions

Comparing version 11.4.1 to 11.5.0

12

dist/basic.d.ts

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

/** Adapted from https://github.com/krzkaczor/ts-essentials */
export { DeepPartial, DeepReadonly } from 'utility-types';
/** Essentials */

@@ -9,11 +9,2 @@ export declare type Primitive = string | number | boolean | undefined | null;

export declare type DictionaryValues<T> = T extends Dictionary<infer U> ? U : never;
/** Like Partial but recursive */
export declare type DeepPartial<T> = {
[P in keyof T]?: T[P] extends Array<infer U> ? Array<DeepPartial<U>> : T[P] extends ReadonlyArray<infer U2> ? ReadonlyArray<DeepPartial<U2>> : DeepPartial<T[P]>;
};
/** Like Readonly but recursive */
export declare type DeepReadonly<T> = T extends Primitive ? T : T extends Array<infer U> ? ReadonlyArray<U> : T extends Function ? T : DeepReadonlyObject<T>;
declare type DeepReadonlyObject<T> = {
readonly [P in keyof T]: DeepReadonly<T[P]>;
};
/** Easy create opaque types ie. types that are subset of their original types (ex: positive numbers, uppercased string) */

@@ -24,2 +15,1 @@ export declare type Opaque<K, T> = T & {

export declare type Optional<T> = T | undefined;
export {};
"use strict";
/** Adapted from https://github.com/krzkaczor/ts-essentials */
exports.__esModule = true;

5

package.json
{
"name": "@stoplight/types",
"version": "11.4.1",
"version": "11.5.0",
"description": "Common typings for the Stoplight ecosystem.",

@@ -34,3 +34,4 @@ "keywords": [],

"dependencies": {
"@types/json-schema": "^7.0.4"
"@types/json-schema": "^7.0.4",
"utility-types": "^3.10.0"
},

@@ -37,0 +38,0 @@ "devDependencies": {

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