Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions changelog/1.0.0.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
---

### Version Updates
- [Revision 1.0.22](https://github.com/sinclairzx81/typebox/pull/1375)
- Resolve Socket.Dev False Positive
- [Revision 1.0.21](https://github.com/sinclairzx81/typebox/pull/1374)
- Enable Trusted Publishing: No Functional Changes
- [Revision 1.0.20](https://github.com/sinclairzx81/typebox/pull/1372)
Expand Down
4 changes: 2 additions & 2 deletions src/type/engine/cyclic/extends.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ import { type TArray, Array, IsArray, ArrayOptions } from '../../types/array.ts'
import { type TAsyncIterator, AsyncIterator, IsAsyncIterator } from '../../types/async-iterator.ts'
import { type TConstructor, Constructor, IsConstructor } from '../../types/constructor.ts'
import { type TCyclic } from '../../types/cyclic.ts'
import { type TFunction, Function, IsFunction } from '../../types/function.ts'
import { type TFunction, Function as _Function, IsFunction } from '../../types/function.ts'
import { type TIntersect, Intersect, IsIntersect } from '../../types/intersect.ts'
import { type TIterator, Iterator, IsIterator } from '../../types/iterator.ts'
import { type TObject, Object, IsObject } from '../../types/object.ts'
Expand Down Expand Up @@ -106,7 +106,7 @@ function FromType<Type extends TSchema>(type: Type): TFromType<Type> {
IsArray(type) ? Array(FromType(type.items), ArrayOptions(type)) :
IsAsyncIterator(type) ? AsyncIterator(FromType(type.iteratorItems)) :
IsConstructor(type) ? Constructor(FromTypes(type.parameters), FromType(type.instanceType)) :
IsFunction(type) ? Function(FromTypes(type.parameters), FromType(type.returnType)) :
IsFunction(type) ? _Function(FromTypes(type.parameters), FromType(type.returnType)) :
IsIntersect(type) ? Intersect(FromTypes(type.allOf)) :
IsIterator(type) ? Iterator(FromType(type.iteratorItems)) :
IsObject(type) ? Object(FromProperties(type.properties)) :
Expand Down
4 changes: 2 additions & 2 deletions src/type/engine/instantiate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ import { type TArray, Array, IsArray, ArrayOptions } from '../types/array.ts'
import { type TAsyncIterator, AsyncIterator, IsAsyncIterator, AsyncIteratorOptions } from '../types/async-iterator.ts'
import { type TConstructor, Constructor, IsConstructor, ConstructorOptions } from '../types/constructor.ts'
import { type TDeferred, Deferred, IsDeferred } from '../types/deferred.ts'
import { type TFunction, Function, IsFunction, FunctionOptions } from '../types/function.ts'
import { type TFunction, Function as _Function, IsFunction, FunctionOptions } from '../types/function.ts'
import { type TCall, IsCall } from '../types/call.ts'
import { type TIdentifier } from '../types/identifier.ts'
import { type TIntersect, Intersect, IsIntersect, IntersectOptions } from '../types/intersect.ts'
Expand Down Expand Up @@ -369,7 +369,7 @@ export function InstantiateType<Context extends TProperties, State extends TStat
IsCall(type) ? CallInstantiate(context, state, type.target, type.arguments) :
IsConstructor(type) ? Constructor(InstantiateTypes(context, state, type.parameters), InstantiateType(context, state, type.instanceType) as never, ConstructorOptions(type)) :
IsDeferred(type) ? InstantiateDeferred(context, state, type.action, type.parameters, type.options) :
IsFunction(type) ? Function(InstantiateTypes(context, state, type.parameters), InstantiateType(context, state, type.returnType) as never, FunctionOptions(type)) :
IsFunction(type) ? _Function(InstantiateTypes(context, state, type.parameters), InstantiateType(context, state, type.returnType) as never, FunctionOptions(type)) :
IsIntersect(type) ? Intersect(InstantiateTypes(context, state, type.allOf), IntersectOptions(type)) :
IsIterator(type) ? Iterator(InstantiateType(context, state, type.iteratorItems), IteratorOptions(type)) :
IsObject(type) ? Object(InstantiateProperties(context, state, type.properties), ObjectOptions(type)) :
Expand Down
2 changes: 1 addition & 1 deletion tasks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { Range } from './task/range/index.ts'
import { Metrics } from './task/metrics/index.ts'
import { Task } from 'tasksmith'

const Version = '1.0.21'
const Version = '1.0.22'

// ------------------------------------------------------------------
// Build
Expand Down