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

json-schema-to-ts

Package Overview
Dependencies
Maintainers
1
Versions
81
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

json-schema-to-ts - npm Package Compare versions

Comparing version 0.1.4 to 0.1.5

src/utils/merge.ts

2

package.json
{
"name": "json-schema-to-ts",
"version": "0.1.4",
"version": "0.1.5",
"description": "Infer typescript types from your JSON schemas!",

@@ -5,0 +5,0 @@ "main": "src/index.ts",

import { FromWriteableSchema } from "./index";
import { ObjectSchema, Schema } from "./schema";
import { Merge } from "./utils";
import { MergeRight } from "./utils";

@@ -8,3 +8,3 @@ export type FromObjectSchema<S> = S extends ObjectSchema

? number extends keyof S["required"]
? Merge<
? MergeRight<
{

@@ -11,0 +11,0 @@ [key in Exclude<

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

import { Merge } from "./utils";
import { MergeRight } from "./utils";

@@ -13,3 +13,3 @@ type CommonProps = {

type MakeSchema<SpecificProps = {}> = Merge<CommonProps, SpecificProps>;
type MakeSchema<SpecificProps = {}> = MergeRight<CommonProps, SpecificProps>;

@@ -16,0 +16,0 @@ export type NullSchema = MakeSchema<{

@@ -7,4 +7,4 @@ export { Head } from "./head";

export { ShortenReversed } from "./shorten";
export { Merge } from "./merge";
export { MergeRight } from "./merge";
export { Writeable } from "./writeable";
export { DoesExtend, DoesBothExtend } from "./extends";
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