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

as-typed

Package Overview
Dependencies
Maintainers
1
Versions
66
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

as-typed - npm Package Compare versions

Comparing version 0.0.0-dev.20210203015357 to 0.0.0-dev.20210203020142

6

index.d.ts

@@ -69,3 +69,3 @@ declare namespace AsTypedInternal {

ReqProps extends string[],
AdditionalProps extends SchemaBase | null = null
AdditionalProps extends SchemaBase | boolean = false
> = SchemaDeclaration<"object"> & {

@@ -154,4 +154,6 @@ required?: ReqProps;

AdditionalPropsSchema
> = AdditionalPropsSchema extends null
> = AdditionalPropsSchema extends false
? unknown
: AdditionalPropsSchema extends true
? { [key: string]: unknown }
: { [key: string]: ResolveRecursive<AdditionalPropsSchema> };

@@ -158,0 +160,0 @@

{
"name": "as-typed",
"version": "0.0.0-dev.20210203015357",
"version": "0.0.0-dev.20210203020142",
"description": "Static TypeScript types from a literal JSONSchema type",

@@ -5,0 +5,0 @@ "types": "index.d.ts",

@@ -298,1 +298,10 @@ import { AsTyped } from "./index";

);
assert(
_ as AsTyped<{
type: "object";
properties: { b: { type: "boolean" } };
additionalProperties: true,
}>,
_ as { b?: boolean, [k: string]: unknown }
);
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