@sinclair/typebox 0.34.32 → 0.34.33
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/cjs/syntax/mapping.d.ts +1 -1
- package/build/cjs/syntax/mapping.js +1 -1
- package/build/cjs/syntax/syntax.d.ts +1 -1
- package/build/cjs/syntax/syntax.js +1 -1
- package/build/esm/syntax/mapping.d.mts +1 -1
- package/build/esm/syntax/mapping.mjs +1 -1
- package/build/esm/syntax/syntax.d.mts +1 -1
- package/build/esm/syntax/syntax.mjs +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as T from '
|
|
1
|
+
import * as T from '../type/index';
|
|
2
2
|
type TDereference<Context extends T.TProperties, Key extends string> = (Key extends keyof Context ? Context[Key] : T.TRef<Key>);
|
|
3
3
|
type TDelimitedDecode<Input extends ([unknown, unknown] | unknown)[], Result extends unknown[] = []> = (Input extends [infer Left, ...infer Right] ? Left extends [infer Item, infer _] ? TDelimitedDecode<Right, [...Result, Item]> : TDelimitedDecode<Right, [...Result, Left]> : Result);
|
|
4
4
|
type TDelimited<Input extends [unknown, unknown]> = Input extends [infer Left extends unknown[], infer Right extends unknown[]] ? TDelimitedDecode<[...Left, ...Right]> : [];
|
|
@@ -70,7 +70,7 @@ exports.UncapitalizeMapping = UncapitalizeMapping;
|
|
|
70
70
|
exports.DateMapping = DateMapping;
|
|
71
71
|
exports.Uint8ArrayMapping = Uint8ArrayMapping;
|
|
72
72
|
exports.ReferenceMapping = ReferenceMapping;
|
|
73
|
-
const T = require("
|
|
73
|
+
const T = require("../type/index");
|
|
74
74
|
// prettier-ignore
|
|
75
75
|
const Dereference = (context, key) => {
|
|
76
76
|
return key in context ? context[key] : T.Ref(key);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as t from '
|
|
1
|
+
import * as t from '../type/index';
|
|
2
2
|
import { TType } from './parser';
|
|
3
3
|
/** `[Experimental]` Parses type expressions into TypeBox types but does not infer */
|
|
4
4
|
export declare function NoInfer<Context extends Record<PropertyKey, t.TSchema>, Input extends string>(context: Context, input: Input, options?: t.SchemaOptions): t.TSchema;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
exports.NoInfer = NoInfer;
|
|
5
5
|
exports.Syntax = Syntax;
|
|
6
|
-
const t = require("
|
|
6
|
+
const t = require("../type/index");
|
|
7
7
|
const parser_1 = require("./parser");
|
|
8
8
|
/** `[Experimental]` Parses type expressions into TypeBox types but does not infer */
|
|
9
9
|
// prettier-ignore
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as T from '
|
|
1
|
+
import * as T from '../type/index.mjs';
|
|
2
2
|
type TDereference<Context extends T.TProperties, Key extends string> = (Key extends keyof Context ? Context[Key] : T.TRef<Key>);
|
|
3
3
|
type TDelimitedDecode<Input extends ([unknown, unknown] | unknown)[], Result extends unknown[] = []> = (Input extends [infer Left, ...infer Right] ? Left extends [infer Item, infer _] ? TDelimitedDecode<Right, [...Result, Item]> : TDelimitedDecode<Right, [...Result, Left]> : Result);
|
|
4
4
|
type TDelimited<Input extends [unknown, unknown]> = Input extends [infer Left extends unknown[], infer Right extends unknown[]] ? TDelimitedDecode<[...Left, ...Right]> : [];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as t from '
|
|
1
|
+
import * as t from '../type/index.mjs';
|
|
2
2
|
import { TType } from './parser.mjs';
|
|
3
3
|
/** `[Experimental]` Parses type expressions into TypeBox types but does not infer */
|
|
4
4
|
export declare function NoInfer<Context extends Record<PropertyKey, t.TSchema>, Input extends string>(context: Context, input: Input, options?: t.SchemaOptions): t.TSchema;
|