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.20220802112108 to 0.0.0-dev.20220907144324

34

index.d.ts

@@ -100,19 +100,2 @@ declare namespace AsTypedInternal {

? ResolveNot<T>
: SchemaType extends {
type: "object";
required?: infer Required;
properties?: infer Props;
additionalProperties?: infer AdditionalProperties;
}
? ResolveObject<
Props,
Required extends undefined
? unknown
: Required extends string[]
? string extends Required[number]
? unknown
: Required[number]
: unknown,
AdditionalProperties
>
: SchemaType extends { type: "array"; items: infer ValueType }

@@ -138,2 +121,19 @@ ? Array<Resolve<ValueType>>

? (Resolve<If> & Resolve<Then>) | Resolve<Else>
: SchemaType extends {
type?: "object";
required?: infer Required;
properties?: infer Props;
additionalProperties?: infer AdditionalProperties;
}
? ResolveObject<
Props,
Required extends undefined
? unknown
: Required extends string[]
? string extends Required[number]
? unknown
: Required[number]
: unknown,
AdditionalProperties
>
: never;

@@ -140,0 +140,0 @@

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

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

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