Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

typebox

Package Overview
Dependencies
Maintainers
1
Versions
145
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

typebox - npm Package Compare versions

Comparing version
1.1.32
to
1.1.33
+1
-1
build/system/locale/_config.d.mts

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

import { TLocalizedValidationMessageCallback } from '../../error/index.mjs';
import { type TLocalizedValidationMessageCallback } from '../../error/index.mjs';
/** Sets the locale */

@@ -3,0 +3,0 @@ export declare function Set(callback: TLocalizedValidationMessageCallback): void;

@@ -1,3 +0,3 @@

import { TValidationError } from '../../error/index.mjs';
import { type TValidationError } from '../../error/index.mjs';
/** Arabic (World) - ISO 639-1 language code 'ar' with UN M.49 region code '001' for World. */
export declare function ar_001(error: TValidationError): string;

@@ -1,3 +0,3 @@

import { TValidationError } from '../../error/index.mjs';
import { type TValidationError } from '../../error/index.mjs';
/** Bengali (Bangladesh) - ISO 639-1 language code 'bn' with ISO 3166-1 alpha-2 country code 'BD' for Bangladesh. */
export declare function bn_BD(error: TValidationError): string;

@@ -1,3 +0,3 @@

import { TValidationError } from '../../error/index.mjs';
import { type TValidationError } from '../../error/index.mjs';
/** Czech (Czech Republic) - ISO 639-1 language code 'cs' with ISO 3166-1 alpha-2 country code 'CZ' for Czech Republic. */
export declare function cs_CZ(error: TValidationError): string;

@@ -1,3 +0,3 @@

import { TValidationError } from '../../error/index.mjs';
import { type TValidationError } from '../../error/index.mjs';
/** German (Germany) - ISO 639-1 language code 'de' with ISO 3166-1 alpha-2 country code 'DE' for Germany. */
export declare function de_DE(error: TValidationError): string;

@@ -1,3 +0,3 @@

import { TValidationError } from '../../error/index.mjs';
import { type TValidationError } from '../../error/index.mjs';
/** Greek (Greece) - ISO 639-1 language code 'el' with ISO 3166-1 alpha-2 country code 'GR' for Greece. */
export declare function el_GR(error: TValidationError): string;

@@ -1,3 +0,3 @@

import { TValidationError } from '../../error/index.mjs';
import { type TValidationError } from '../../error/index.mjs';
/** en_US: English (United States) - ISO 639-1 language code 'en' with ISO 3166-1 alpha-2 country code 'US' for United States. */
export declare function en_US(error: TValidationError): string;

@@ -1,3 +0,3 @@

import { TValidationError } from '../../error/index.mjs';
import { type TValidationError } from '../../error/index.mjs';
/** Spanish (Latin America) - ISO 639-1 language code 'es' with UN M.49 region code '419' for Latin America and the Caribbean. */
export declare function es_419(error: TValidationError): string;

@@ -1,3 +0,3 @@

import { TValidationError } from '../../error/index.mjs';
import { type TValidationError } from '../../error/index.mjs';
/** Spanish (Argentina) - ISO 639-1 language code 'es' with ISO 3166-1 alpha-2 country code 'AR' for Argentina. */
export declare function es_AR(error: TValidationError): string;

@@ -1,3 +0,3 @@

import { TValidationError } from '../../error/index.mjs';
import { type TValidationError } from '../../error/index.mjs';
/** Spanish (Spain) - ISO 639-1 language code 'es' with ISO 3166-1 alpha-2 country code 'ES' for Spain. */
export declare function es_ES(error: TValidationError): string;

@@ -1,3 +0,3 @@

import { TValidationError } from '../../error/index.mjs';
import { type TValidationError } from '../../error/index.mjs';
/** Spanish (Mexico) - ISO 639-1 language code 'es' with ISO 3166-1 alpha-2 country code 'MX' for Mexico. */
export declare function es_MX(error: TValidationError): string;

@@ -1,3 +0,3 @@

import { TValidationError } from '../../error/index.mjs';
import { type TValidationError } from '../../error/index.mjs';
/** Persian (Iran) - ISO 639-1 language code 'fa' with ISO 3166-1 alpha-2 country code 'IR' for Iran. */
export declare function fa_IR(error: TValidationError): string;

@@ -1,3 +0,3 @@

import { TValidationError } from '../../error/index.mjs';
import { type TValidationError } from '../../error/index.mjs';
/** Filipino (Philippines) - ISO 639-1 language code 'fil' with ISO 3166-1 */
export declare function fil_PH(error: TValidationError): string;

@@ -1,3 +0,3 @@

import { TValidationError } from '../../error/index.mjs';
import { type TValidationError } from '../../error/index.mjs';
/** French (Canada) - ISO 639-1 language code 'fr' with ISO 3166-1 alpha-2 country code 'CA' for Canada. */
export declare function fr_CA(error: TValidationError): string;

@@ -1,3 +0,3 @@

import { TValidationError } from '../../error/index.mjs';
import { type TValidationError } from '../../error/index.mjs';
/** French (France) - ISO 639-1 language code 'fr' with ISO 3166-1 alpha-2 country code 'FR' for France. */
export declare function fr_FR(error: TValidationError): string;

@@ -1,3 +0,3 @@

import { TValidationError } from '../../error/index.mjs';
import { type TValidationError } from '../../error/index.mjs';
/** Hausa (Nigeria) - ISO 639-1 language code 'ha' with ISO 3166-1 alpha-2 country code 'NG' for Nigeria. */
export declare function ha_NG(error: TValidationError): string;

@@ -1,3 +0,3 @@

import { TValidationError } from '../../error/index.mjs';
import { type TValidationError } from '../../error/index.mjs';
/** Hindi (India) - ISO 639-1 language code 'hi' with ISO 3166-1 alpha-2 country code 'IN' for India. */
export declare function hi_IN(error: TValidationError): string;

@@ -1,3 +0,3 @@

import { TValidationError } from '../../error/index.mjs';
import { type TValidationError } from '../../error/index.mjs';
/** Hungarian (Hungary) - ISO 639-1 language code 'hu' with ISO 3166-1 alpha-2 country code 'HU' for Hungary. */
export declare function hu_HU(error: TValidationError): string;

@@ -1,3 +0,3 @@

import { TValidationError } from '../../error/index.mjs';
import { type TValidationError } from '../../error/index.mjs';
/** Indonesian (Indonesia) - ISO 639-1 language code 'id' with ISO 3166-1 alpha-2 country code 'ID' for Indonesia. */
export declare function id_ID(error: TValidationError): string;

@@ -1,3 +0,3 @@

import { TValidationError } from '../../error/index.mjs';
import { type TValidationError } from '../../error/index.mjs';
/** Italian (Italy) - ISO 639-1 language code 'it' with ISO 3166-1 alpha-2 country code 'IT' for Italy. */
export declare function it_IT(error: TValidationError): string;

@@ -1,3 +0,3 @@

import { TValidationError } from '../../error/index.mjs';
import { type TValidationError } from '../../error/index.mjs';
/** Japanese (Japan) - ISO 639-1 language code 'ja' with ISO 3166-1 alpha-2 country code 'JP' for Japan. */
export declare function ja_JP(error: TValidationError): string;

@@ -1,3 +0,3 @@

import { TValidationError } from '../../error/index.mjs';
import { type TValidationError } from '../../error/index.mjs';
/** Korean (South Korea) - ISO 639-1 language code 'ko' with ISO 3166-1 alpha-2 country code 'KR' for South Korea. */
export declare function ko_KR(error: TValidationError): string;

@@ -1,3 +0,3 @@

import { TValidationError } from '../../error/index.mjs';
import { type TValidationError } from '../../error/index.mjs';
/** Malay (Malaysia) - ISO 639-1 language code 'ms' with ISO 3166-1 alpha-2 country code 'MY' for Malaysia. */
export declare function ms_MY(error: TValidationError): string;

@@ -1,3 +0,3 @@

import { TValidationError } from '../../error/index.mjs';
import { type TValidationError } from '../../error/index.mjs';
/** Dutch (Netherlands) - ISO 639-1 language code 'nl' with ISO 3166-1 alpha-2 country code 'NL' for Netherlands. */
export declare function nl_NL(error: TValidationError): string;

@@ -1,3 +0,3 @@

import { TValidationError } from '../../error/index.mjs';
import { type TValidationError } from '../../error/index.mjs';
/** Polish (Poland) - ISO 639-1 language code 'pl' with ISO 3166-1 alpha-2 country code 'PL' for Poland. */
export declare function pl_PL(error: TValidationError): string;

@@ -1,3 +0,3 @@

import { TValidationError } from '../../error/index.mjs';
import { type TValidationError } from '../../error/index.mjs';
/** Portuguese (Brazil) - ISO 639-1 language code 'pt' with ISO 3166-1 alpha-2 country code 'BR' for Brazil. */
export declare function pt_BR(error: TValidationError): string;

@@ -1,3 +0,3 @@

import { TValidationError } from '../../error/index.mjs';
import { type TValidationError } from '../../error/index.mjs';
/** Portuguese (Portugal) - ISO 639-1 language code 'pt' with ISO 3166-1 alpha-2 country code 'PT' for Portugal. */
export declare function pt_PT(error: TValidationError): string;

@@ -1,3 +0,3 @@

import { TValidationError } from '../../error/index.mjs';
import { type TValidationError } from '../../error/index.mjs';
/** Romanian (Romania) - ISO 639-1 language code 'ro' with ISO 3166-1 alpha-2 country code 'RO' for Romania. */
export declare function ro_RO(error: TValidationError): string;

@@ -1,3 +0,3 @@

import { TValidationError } from '../../error/index.mjs';
import { type TValidationError } from '../../error/index.mjs';
/** Russian (Russia) - ISO 639-1 language code 'ru' with ISO 3166-1 alpha-2 country code 'RU' for Russia. */
export declare function ru_RU(error: TValidationError): string;

@@ -1,3 +0,3 @@

import { TValidationError } from '../../error/index.mjs';
import { type TValidationError } from '../../error/index.mjs';
/** Swedish (Sweden) - ISO 639-1 language code 'sv' with ISO 3166-1 alpha-2 country code 'SE' for Sweden. */
export declare function sv_SE(error: TValidationError): string;

@@ -1,3 +0,3 @@

import { TValidationError } from '../../error/index.mjs';
import { type TValidationError } from '../../error/index.mjs';
/** Swahili (Tanzania) - ISO 639-1 language code 'sw' with ISO 3166-1 alpha-2 country code 'TZ' for Tanzania (as a common representative). */
export declare function sw_TZ(error: TValidationError): string;

@@ -1,3 +0,3 @@

import { TValidationError } from '../../error/index.mjs';
import { type TValidationError } from '../../error/index.mjs';
/** Thai (Thailand) - ISO 639-1 language code 'th' with ISO 3166-1 alpha-2 country code 'TH' for Thailand. */
export declare function th_TH(error: TValidationError): string;

@@ -1,3 +0,3 @@

import { TValidationError } from '../../error/index.mjs';
import { type TValidationError } from '../../error/index.mjs';
/** Turkish (Turkey) - ISO 639-1 language code 'tr' with ISO 3166-1 alpha-2 country code 'TR' for Turkey. */
export declare function tr_TR(error: TValidationError): string;

@@ -1,3 +0,3 @@

import { TValidationError } from '../../error/index.mjs';
import { type TValidationError } from '../../error/index.mjs';
/** Ukrainian (Ukraine) - ISO 639-1 language code 'uk' with ISO 3166-1 alpha-2 country code 'UA' for Ukraine. */
export declare function uk_UA(error: TValidationError): string;

@@ -1,3 +0,3 @@

import { TValidationError } from '../../error/index.mjs';
import { type TValidationError } from '../../error/index.mjs';
/** Urdu (Pakistan) - ISO 639-1 language code 'ur' with ISO 3166-1 alpha-2 country code 'PK' for Pakistan. */
export declare function ur_PK(error: TValidationError): string;

@@ -1,3 +0,3 @@

import { TValidationError } from '../../error/index.mjs';
import { type TValidationError } from '../../error/index.mjs';
/** Vietnamese (Vietnam) - ISO 639-1 language code 'vi' with ISO 3166-1 alpha-2 country code 'VN' for Vietnam. */
export declare function vi_VN(error: TValidationError): string;

@@ -1,3 +0,3 @@

import { TValidationError } from '../../error/index.mjs';
import { type TValidationError } from '../../error/index.mjs';
/** Yoruba (Nigeria) - ISO 639-1 language code 'yo' with ISO 3166-1 alpha-2 country code 'NG' for Nigeria. */
export declare function yo_NG(error: TValidationError): string;

@@ -1,3 +0,3 @@

import { TValidationError } from '../../error/index.mjs';
import { type TValidationError } from '../../error/index.mjs';
/** Chinese (Simplified) - ISO 639-1 language code 'zh' with script code 'Hans' for Simplified Chinese. */
export declare function zh_Hans(error: TValidationError): string;

@@ -1,3 +0,3 @@

import { TValidationError } from '../../error/index.mjs';
import { type TValidationError } from '../../error/index.mjs';
/** Chinese (Traditional) - ISO 639-1 language code 'zh' with script code 'Hant' for Traditional Chinese. */
export declare function zh_Hant(error: TValidationError): string;

@@ -22,9 +22,3 @@ // deno-fmt-ignore-file

function ZipDistributionArray(arguments_, distributionArray, result = []) {
const [argumentLeft, ...argumentRight] = arguments_;
const [booleanLeft, ...booleanRight] = distributionArray;
return (Guard.IsGreaterThan(arguments_.length, 0)
? Guard.IsGreaterThan(distributionArray.length, 0)
? ZipDistributionArray(argumentRight, booleanRight, [...result, [booleanLeft, argumentLeft]])
: result
: result);
return Guard.TakeLeft(arguments_, (argumentLeft, argumentRight) => Guard.TakeLeft(distributionArray, (booleanLeft, booleanRight) => ZipDistributionArray(argumentRight, booleanRight, [...result, [booleanLeft, argumentLeft]]), () => result), () => result);
}

@@ -31,0 +25,0 @@ function Expand(type) {

import { type TUnreachable } from '../../../system/unreachable/index.mjs';
import { type TProperties, TPropertyKeys } from '../../types/properties.mjs';
import { type TProperties, type TPropertyKeys } from '../../types/properties.mjs';
import { type TCyclicCheck } from './check.mjs';

@@ -4,0 +4,0 @@ type TResolveCandidateKeys<Context extends TProperties, Keys extends string[], Result extends string[] = []> = (Keys extends [infer Left extends string, ...infer Right extends string[]] ? Left extends keyof Context ? TCyclicCheck<[Left], Context, Context[Left]> extends true ? TResolveCandidateKeys<Context, Right, [...Result, Left]> : TResolveCandidateKeys<Context, Right, Result> : TUnreachable : Result);

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

import { TSchema } from '../../types/schema.mjs';
import { type TSchema } from '../../types/schema.mjs';
import { type TUnion } from '../../types/union.mjs';

@@ -3,0 +3,0 @@ type TFlattenType<Type extends TSchema, Result extends TSchema[] = Type extends TUnion<infer Types extends TSchema[]> ? TFlatten<Types> : [Type]> = Result;

@@ -1,5 +0,5 @@

import { TSchema } from '../../types/schema.mjs';
import { TNever } from '../../types/never.mjs';
import { TCompare, TCompareResult, ResultLeftInside, ResultRightInside, ResultEqual } from './compare.mjs';
import { type TSchema } from '../../types/schema.mjs';
import { type TNever } from '../../types/never.mjs';
import { type TCompare, type TCompareResult, ResultLeftInside, ResultRightInside, ResultEqual } from './compare.mjs';
export type TNarrow<Left extends TSchema, Right extends TSchema, Result extends TCompareResult = TCompare<Left, Right>> = (Result extends typeof ResultLeftInside ? Left : Result extends typeof ResultRightInside ? Right : Result extends typeof ResultEqual ? Right : TNever);
export declare function Narrow<Left extends TSchema, Right extends TSchema>(left: Left, right: Right): TNarrow<Left, Right>;

@@ -1,3 +0,3 @@

import { TLiteralValue } from '../../types/literal.mjs';
import { type TLiteralValue } from '../../types/literal.mjs';
export type TFromLiteral<Value extends TLiteralValue, Result extends string[] = [`${Value}`]> = Result;
export declare function FromLiteral<Value extends TLiteralValue>(value: Value): TFromLiteral<Value>;

@@ -9,10 +9,10 @@ import { type TSchema } from '../../types/schema.mjs';

import { type TUnion } from '../../types/union.mjs';
import { TFromCyclic } from './from-cyclic.mjs';
import { TFromEnum } from './from-enum.mjs';
import { TFromIntersect } from './from-intersect.mjs';
import { TFromLiteral } from './from-literal.mjs';
import { TFromTemplateLiteral } from './from-template-literal.mjs';
import { TFromUnion } from './from-union.mjs';
import { type TFromCyclic } from './from-cyclic.mjs';
import { type TFromEnum } from './from-enum.mjs';
import { type TFromIntersect } from './from-intersect.mjs';
import { type TFromLiteral } from './from-literal.mjs';
import { type TFromTemplateLiteral } from './from-template-literal.mjs';
import { type TFromUnion } from './from-union.mjs';
export type TFromType<Indexer extends TSchema, Result extends string[] = (Indexer extends TCyclic<infer Defs extends TProperties, infer Ref extends string> ? TFromCyclic<Defs, Ref> : Indexer extends TEnum<infer Values extends TEnumValue[]> ? TFromEnum<Values> : Indexer extends TIntersect<infer Types extends TSchema[]> ? TFromIntersect<Types> : Indexer extends TLiteral<infer Value extends TLiteralValue> ? TFromLiteral<Value> : Indexer extends TTemplateLiteral<infer Pattern extends string> ? TFromTemplateLiteral<Pattern> : Indexer extends TUnion<infer Types extends TSchema[]> ? TFromUnion<Types> : [
])> = Result;
export declare function FromType<Indexer extends TSchema>(type: Indexer): TFromType<Indexer>;
import { type TImmutable } from '../types/_immutable.mjs';
import { type TOptional, TOptionalAdd, TOptionalRemove } from '../types/_optional.mjs';
import { type TReadonly, TReadonlyAdd, TReadonlyRemove } from '../types/_readonly.mjs';
import { type TOptional, type TOptionalAdd, type TOptionalRemove } from '../types/_optional.mjs';
import { type TReadonly, type TReadonlyAdd, type TReadonlyRemove } from '../types/_readonly.mjs';
import { type TSchema } from '../types/schema.mjs';

@@ -5,0 +5,0 @@ import { type TArray } from '../types/array.mjs';

@@ -14,3 +14,3 @@ // deno-fmt-ignore-file

import { IsBase } from '../types/base.mjs';
import { Array, IsArray, ArrayOptions } from '../types/array.mjs';
import { _Array_, IsArray, ArrayOptions } from '../types/array.mjs';
import { AsyncIterator, IsAsyncIterator, AsyncIteratorOptions } from '../types/async-iterator.mjs';

@@ -138,3 +138,3 @@ import { Constructor, IsConstructor, ConstructorOptions } from '../types/constructor.mjs';

const instantiated = (IsRef(type) ? RefInstantiate(context, state, type, type.$ref) :
IsArray(type) ? Array(InstantiateType(context, state, type.items), ArrayOptions(type)) :
IsArray(type) ? _Array_(InstantiateType(context, state, type.items), ArrayOptions(type)) :
IsAsyncIterator(type) ? AsyncIterator(InstantiateType(context, state, type.iteratorItems), AsyncIteratorOptions(type)) :

@@ -141,0 +141,0 @@ IsCall(type) ? CallInstantiate(context, state, type.target, type.arguments) :

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

import { TProperties } from '../../types/properties.mjs';
import { type TProperties } from '../../types/properties.mjs';
import { type TState, type TInstantiateType } from '../instantiate.mjs';

@@ -3,0 +3,0 @@ import { type TCyclicCheck } from '../cyclic/check.mjs';

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

import { TUnreachable } from '../../../system/unreachable/index.mjs';
import { type TUnreachable } from '../../../system/unreachable/index.mjs';
import { type TSchema } from '../../types/schema.mjs';

@@ -3,0 +3,0 @@ import { type TLiteral, type TLiteralValue } from '../../types/literal.mjs';

@@ -5,3 +5,3 @@ import { type TSchema } from '../../types/schema.mjs';

import { type TUnion } from '../../types/union.mjs';
import { type TTemplateLiteral, TTemplateLiteralDeferred } from '../../types/template-literal.mjs';
import { type TTemplateLiteral, type TTemplateLiteralDeferred } from '../../types/template-literal.mjs';
import { type TBigInt, BigIntPattern } from '../../types/bigint.mjs';

@@ -8,0 +8,0 @@ import { type TString, StringPattern } from '../../types/string.mjs';

// deno-fmt-ignore-file
import { IsArray, Array } from '../../types/array.mjs';
import { IsArray, _Array_ } from '../../types/array.mjs';
import { IsAsyncIterator, AsyncIterator } from '../../types/async-iterator.mjs';
import { IsConstructor, Constructor } from '../../types/constructor.mjs';
import { IsFunction, Function } from '../../types/function.mjs';
import { IsFunction, _Function_ } from '../../types/function.mjs';
import { IsIterator, Iterator } from '../../types/iterator.mjs';
import { IsIntersect, Intersect } from '../../types/intersect.mjs';
import { Object } from '../../types/object.mjs';
import { _Object_ } from '../../types/object.mjs';
import { IsPromise, Promise } from '../../types/promise.mjs';

@@ -17,6 +17,6 @@ import { IsTuple, Tuple } from '../../types/tuple.mjs';

export function FromType(properties, type) {
return (IsArray(type) ? Array(FromType(properties, type.items)) :
return (IsArray(type) ? _Array_(FromType(properties, type.items)) :
IsAsyncIterator(type) ? AsyncIterator(FromType(properties, type.iteratorItems)) :
IsConstructor(type) ? Constructor(FromTypes(properties, type.parameters), FromType(properties, type.instanceType)) :
IsFunction(type) ? Function(FromTypes(properties, type.parameters), FromType(properties, type.returnType)) :
IsFunction(type) ? _Function_(FromTypes(properties, type.parameters), FromType(properties, type.returnType)) :
IsIterator(type) ? Iterator(FromType(properties, type.iteratorItems)) :

@@ -27,3 +27,3 @@ IsPromise(type) ? Promise(FromType(properties, type.item)) :

IsIntersect(type) ? Intersect(FromTypes(properties, type.allOf)) :
IsThis(type) ? Object(properties) :
IsThis(type) ? _Object_(properties) :
type);

@@ -30,0 +30,0 @@ }

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

import { TUnreachable } from '../../system/unreachable/unreachable.mjs';
import { type TUnreachable } from '../../system/unreachable/unreachable.mjs';
import { type TSchema } from '../types/schema.mjs';

@@ -3,0 +3,0 @@ import { type TProperties } from '../types/properties.mjs';

// deno-fmt-ignore-file
import { Guard } from '../../guard/index.mjs';
import { Unreachable } from '../../system/unreachable/unreachable.mjs';
import { Guard } from '../../guard/index.mjs';
import { IsLiteral, Literal } from '../types/literal.mjs';

@@ -5,0 +5,0 @@ import { IsBigInt } from '../types/bigint.mjs';

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

import { TProperties } from '../types/properties.mjs';
import { type TProperties } from '../types/properties.mjs';
export type TResult = TExtendsUnion | TExtendsTrue | TExtendsFalse;

@@ -3,0 +3,0 @@ export interface TExtendsUnion<Inferred extends TProperties = TProperties> {

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

export { IsArray, IsEqual, IsString } from '../../../../guard/guard.mjs';
export { IsArray, IsEqual, IsString, TakeLeft } from '../../../../guard/guard.mjs';
// deno-coverage-ignore-start - parsebox tested
export { IsArray, IsEqual, IsString } from '../../../../guard/guard.mjs';
export { IsArray, IsEqual, IsString, TakeLeft } from '../../../../guard/guard.mjs';
// ------------------------------------------------------------------

@@ -4,0 +4,0 @@ // Internal Guards to ensure Token is portable.

@@ -15,11 +15,7 @@ // deno-coverage-ignore-start - parsebox tested

// ----------------------------------------------------------------
// const [left, ...right] = variants
// return (
// IsString(left)
// ? (() => {
// const result = TakeVariant(left, input)
// return IsEqual(result.length, 2) ? result : Take(right, input)
// })()
// : []
// ) as never
// return Guard.TakeLeft(variants, (valueLeft, valueRight) =>
// Match(TakeVariant(valueLeft, input), (take, rest) =>
// [take, rest],
// () => Take(valueRight, input)),
// () => []) as never
// ----------------------------------------------------------------

@@ -26,0 +22,0 @@ // Inline

// deno-coverage-ignore-start - parsebox tested
// deno-fmt-ignore-file
import { Match } from './internal/match.mjs';
import { IsEqual, IsString } from './internal/guard.mjs';
import { IsEqual, TakeLeft } from './internal/guard.mjs';
function TakeOne(input) {

@@ -10,8 +10,5 @@ const result = IsEqual(input, '') ? [] : [input.slice(0, 1), input.slice(1)];

function IsInputMatchSentinal(end, input) {
const [left, ...right] = end;
return (IsString(left)
? input.startsWith(left)
? true
: IsInputMatchSentinal(right, input)
: false);
return TakeLeft(end, (left, right) => input.startsWith(left)
? true
: IsInputMatchSentinal(right, input), () => false);
}

@@ -18,0 +15,0 @@ /** Match Input until but not including End. No match if End not found. */

@@ -13,3 +13,4 @@ import { type StaticType, type StaticDirection } from './static.mjs';

/** Creates an Array type. */
export declare function Array<Type extends TSchema>(items: Type, options?: TArrayOptions): TArray<Type>;
export declare function _Array_<Type extends TSchema>(items: Type, options?: TArrayOptions): TArray<Type>;
export { _Array_ as Array };
/** Returns true if the given value is a TArray. */

@@ -16,0 +17,0 @@ export declare function IsArray(value: unknown): value is TArray;

@@ -8,5 +8,6 @@ // deno-fmt-ignore-file

/** Creates an Array type. */
export function Array(items, options) {
export function _Array_(items, options) {
return Memory.Create({ '~kind': 'Array' }, { type: 'array', items }, options);
}
export { _Array_ as Array }; // Prevent Collision With Global Scope
// ------------------------------------------------------------------

@@ -13,0 +14,0 @@ // Guard

@@ -11,3 +11,3 @@ // deno-fmt-ignore-file

}
export { _Function_ as Function };
export { _Function_ as Function }; // Prevent Collision With Global Scope
// ------------------------------------------------------------------

@@ -14,0 +14,0 @@ // Guard

@@ -14,3 +14,3 @@ // deno-fmt-ignore-file

}
export { _Object_ as Object }; // Required for CommonJS ES Interop
export { _Object_ as Object }; // Prevent Collision With Global Scope
// ------------------------------------------------------------------

@@ -17,0 +17,0 @@ // Guard

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

import { type TProperties, TCyclic } from '../../type/index.mjs';
import { type TProperties, type TCyclic } from '../../type/index.mjs';
export declare function FromCyclic(context: TProperties, type: TCyclic, value: unknown): unknown;

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

import { TLiteral, TProperties } from '../../type/index.mjs';
import { type TLiteral, type TProperties } from '../../type/index.mjs';
export declare function FromLiteral(context: TProperties, type: TLiteral, value: unknown): unknown;

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

import { TResult } from './try-result.mjs';
import { type TResult } from './try-result.mjs';
export declare function TryBigInt(value: unknown): TResult<bigint>;

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

import { TResult } from './try-result.mjs';
import { type TResult } from './try-result.mjs';
export declare function TryBoolean(value: unknown): TResult<boolean>;

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

import { TResult } from './try-result.mjs';
import { type TResult } from './try-result.mjs';
export declare function TryNull(value: unknown): TResult<null>;

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

import { TResult } from './try-result.mjs';
import { type TResult } from './try-result.mjs';
export declare function TryNumber(value: unknown): TResult<number>;

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

import { TResult } from './try-result.mjs';
import { type TResult } from './try-result.mjs';
export declare function TryString(value: unknown): TResult;

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

import { TResult } from './try-result.mjs';
import { type TResult } from './try-result.mjs';
export declare function TryUndefined(value: unknown): TResult<undefined>;

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

import { TProperties, TIntersect } from '../../type/index.mjs';
import { type TProperties, type TIntersect } from '../../type/index.mjs';
export declare function FromIntersect(context: TProperties, type: TIntersect, value: unknown): unknown;
{
"name": "typebox",
"description": "Json Schema Type Builder with Static Type Resolution for TypeScript",
"version": "1.1.32",
"version": "1.1.33",
"keywords": [

@@ -6,0 +6,0 @@ "typescript",