typebox 1.0.21 → 1.0.22

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.
@@ -4,7 +4,7 @@ import { Any } from '../../types/any.mjs';
4
4
  import { Array, IsArray, ArrayOptions } from '../../types/array.mjs';
5
5
  import { AsyncIterator, IsAsyncIterator } from '../../types/async-iterator.mjs';
6
6
  import { Constructor, IsConstructor } from '../../types/constructor.mjs';
7
- import { Function, IsFunction } from '../../types/function.mjs';
7
+ import { Function as _Function, IsFunction } from '../../types/function.mjs';
8
8
  import { Intersect, IsIntersect } from '../../types/intersect.mjs';
9
9
  import { Iterator, IsIterator } from '../../types/iterator.mjs';
10
10
  import { Object, IsObject } from '../../types/object.mjs';
@@ -32,7 +32,7 @@ function FromType(type) {
32
32
  IsArray(type) ? Array(FromType(type.items), ArrayOptions(type)) :
33
33
  IsAsyncIterator(type) ? AsyncIterator(FromType(type.iteratorItems)) :
34
34
  IsConstructor(type) ? Constructor(FromTypes(type.parameters), FromType(type.instanceType)) :
35
- IsFunction(type) ? Function(FromTypes(type.parameters), FromType(type.returnType)) :
35
+ IsFunction(type) ? _Function(FromTypes(type.parameters), FromType(type.returnType)) :
36
36
  IsIntersect(type) ? Intersect(FromTypes(type.allOf)) :
37
37
  IsIterator(type) ? Iterator(FromType(type.iteratorItems)) :
38
38
  IsObject(type) ? Object(FromProperties(type.properties)) :
@@ -14,7 +14,7 @@ import { Array, IsArray, ArrayOptions } from '../types/array.mjs';
14
14
  import { AsyncIterator, IsAsyncIterator, AsyncIteratorOptions } from '../types/async-iterator.mjs';
15
15
  import { Constructor, IsConstructor, ConstructorOptions } from '../types/constructor.mjs';
16
16
  import { Deferred, IsDeferred } from '../types/deferred.mjs';
17
- import { Function, IsFunction, FunctionOptions } from '../types/function.mjs';
17
+ import { Function as _Function, IsFunction, FunctionOptions } from '../types/function.mjs';
18
18
  import { IsCall } from '../types/call.mjs';
19
19
  import { Intersect, IsIntersect, IntersectOptions } from '../types/intersect.mjs';
20
20
  import { Iterator, IsIterator, IteratorOptions } from '../types/iterator.mjs';
@@ -147,7 +147,7 @@ export function InstantiateType(context, state, input) {
147
147
  IsCall(type) ? CallInstantiate(context, state, type.target, type.arguments) :
148
148
  IsConstructor(type) ? Constructor(InstantiateTypes(context, state, type.parameters), InstantiateType(context, state, type.instanceType), ConstructorOptions(type)) :
149
149
  IsDeferred(type) ? InstantiateDeferred(context, state, type.action, type.parameters, type.options) :
150
- IsFunction(type) ? Function(InstantiateTypes(context, state, type.parameters), InstantiateType(context, state, type.returnType), FunctionOptions(type)) :
150
+ IsFunction(type) ? _Function(InstantiateTypes(context, state, type.parameters), InstantiateType(context, state, type.returnType), FunctionOptions(type)) :
151
151
  IsIntersect(type) ? Intersect(InstantiateTypes(context, state, type.allOf), IntersectOptions(type)) :
152
152
  IsIterator(type) ? Iterator(InstantiateType(context, state, type.iteratorItems), IteratorOptions(type)) :
153
153
  IsObject(type) ? Object(InstantiateProperties(context, state, type.properties), ObjectOptions(type)) :
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "typebox",
3
3
  "description": "A Runtime Type System for JavaScript",
4
- "version": "1.0.21",
4
+ "version": "1.0.22",
5
5
  "keywords": [
6
6
  "typescript",
7
7
  "jsonschema"