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

@sinclair/typebox

Package Overview
Dependencies
Maintainers
1
Versions
329
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sinclair/typebox - npm Package Compare versions

Comparing version 0.9.10 to 0.9.11

2

package.json
{
"name": "@sinclair/typebox",
"version": "0.9.10",
"version": "0.9.11",
"description": "JSONSchema Type Builder with Static Type Resolution for TypeScript",

@@ -5,0 +5,0 @@ "keywords": [

@@ -276,4 +276,4 @@ export interface UserDefinedOptions {

} & ArrayOptions;
export declare type TEnum<T> = {
enum: T[keyof T][];
export declare type TEnum<T extends string | number> = {
enum: Array<T>;
};

@@ -442,3 +442,3 @@ export declare type TNumber = {

/** Creates an `Enum<T>` from an existing TypeScript enum definition. */
static Enum<T extends Record<string, string | number>>(item: T, options?: UserDefinedOptions): TEnum<T>;
static Enum<T extends Record<string, string | number>>(item: T, options?: UserDefinedOptions): TEnum<T[keyof T]>;
/** Creates a `string` type. */

@@ -445,0 +445,0 @@ static String(options?: StringOptions): TString;

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