Socket
Socket
Sign inDemoInstall

@sinclair/typebox

Package Overview
Dependencies
0
Maintainers
1
Versions
303
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.32.17 to 0.32.18

4

build/require/system/system.d.ts

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

import { type TUnsafe } from '../type/unsafe/index';
import { TypeBoxError } from '../type/error/index';

@@ -8,8 +9,9 @@ export declare class TypeSystemDuplicateTypeKind extends TypeBoxError {

}
export type TypeFactoryFunction<Type, Options = Record<PropertyKey, unknown>> = (options?: Partial<Options>) => TUnsafe<Type>;
/** Creates user defined types and formats and provides overrides for value checking behaviours */
export declare namespace TypeSystem {
/** Creates a new type */
function Type<Type, Options = Record<PropertyKey, unknown>>(kind: string, check: (options: Options, value: unknown) => boolean): (options?: Partial<Options>) => import("src/type/unsafe/unsafe").TUnsafe<Type>;
function Type<Type, Options = Record<PropertyKey, unknown>>(kind: string, check: (options: Options, value: unknown) => boolean): TypeFactoryFunction<Type, Options>;
/** Creates a new string format */
function Format<F extends string>(format: F, check: (value: string) => boolean): F;
}

@@ -24,5 +24,2 @@ "use strict";

exports.TypeSystemDuplicateFormat = TypeSystemDuplicateFormat;
// ------------------------------------------------------------------
// TypeSystem
// ------------------------------------------------------------------
/** Creates user defined types and formats and provides overrides for value checking behaviours */

@@ -29,0 +26,0 @@ var TypeSystem;

{
"name": "@sinclair/typebox",
"version": "0.32.17",
"version": "0.32.18",
"description": "Json Schema Type Builder with Static Type Resolution for TypeScript",

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

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc