Fork from @sinclair/typebox 0.34.49 as @alkdev/typebox

- Rename package from @sinclair/typebox to @alkdev/typebox
- Update author, repository, and homepage to alkdev
- Remove GitHub workflows, .vscode config, and branding assets
- Update all source, test, example, changelog, and task imports
- Update tsconfig.json path mappings
- Clean up readme header (remove upstream badges/branding)
This commit is contained in:
glm-5.1 committed 2026-04-23 13:22:31 +00:00
1 parent 11f18ac6e9
commit bd758c2342
981 files changed
+1676 -2054

No files matched your search

+3 -3
View File
@@ -1,7 +1,7 @@
/*--------------------------------------------------------------------------
@sinclair/typebox/prototypes
@alkdev/typebox/prototypes
The MIT License (MIT)
@@ -27,9 +27,9 @@ THE SOFTWARE.
---------------------------------------------------------------------------*/
import { Static, Kind, TSchema, TObject, SchemaOptions, CreateType, TLiteral, TypeRegistry, ValueGuard, KindGuard, TUnion } from '@sinclair/typebox'
import { Static, Kind, TSchema, TObject, SchemaOptions, CreateType, TLiteral, TypeRegistry, ValueGuard, KindGuard, TUnion } from '@alkdev/typebox'
import { GetErrorFunction, SetErrorFunction } from 'src/errors/function'
import { Value } from '@sinclair/typebox/value'
import { Value } from '@alkdev/typebox/value'
// ------------------------------------------------------------------
// DiscriminatedUnionError
+2 -2
View File
@@ -1,6 +1,6 @@
/*--------------------------------------------------------------------------
@sinclair/typebox/prototypes
@alkdev/typebox/prototypes
The MIT License (MIT)
@@ -26,7 +26,7 @@ THE SOFTWARE.
---------------------------------------------------------------------------*/
import * as Type from '@sinclair/typebox'
import * as Type from '@alkdev/typebox'
// ------------------------------------------------------------------
// Schematics
+1 -1
View File
@@ -1,6 +1,6 @@
/*--------------------------------------------------------------------------
@sinclair/typebox/prototypes
@alkdev/typebox/prototypes
The MIT License (MIT)
+2 -2
View File
@@ -1,6 +1,6 @@
/*--------------------------------------------------------------------------
@sinclair/typebox/prototypes
@alkdev/typebox/prototypes
The MIT License (MIT)
@@ -26,7 +26,7 @@ THE SOFTWARE.
---------------------------------------------------------------------------*/
import { TSchema, CloneType } from '@sinclair/typebox'
import { TSchema, CloneType } from '@alkdev/typebox'
// prettier-ignore
export type TOptions<Type extends TSchema, Options extends Record<PropertyKey, unknown>> = (
+2 -2
View File
@@ -1,6 +1,6 @@
/*--------------------------------------------------------------------------
@sinclair/typebox/prototypes
@alkdev/typebox/prototypes
The MIT License (MIT)
@@ -26,7 +26,7 @@ THE SOFTWARE.
---------------------------------------------------------------------------*/
import { TypeGuard, Type, TSchema, TIntersect, TUnion, TObject, TPartial, TProperties, Evaluate } from '@sinclair/typebox'
import { TypeGuard, Type, TSchema, TIntersect, TUnion, TObject, TPartial, TProperties, Evaluate } from '@alkdev/typebox'
// -------------------------------------------------------------------------------------
// TPartialDeepProperties
+1 -1
View File
@@ -86,7 +86,7 @@ type A = typeof A extends { foo: number } ? true : false // true: foo property i
## Recursive Map
The Recursive Map type enables deep structural remapping of a type and it's internal constituents. This type accepts a TSchema type and a mapping type function (expressed via HKT). The HKT is applied when traversing the type and it's interior. The mapping HKT can apply conditional tests to each visited type to remap into a new form. The following augments a schematic via Options, and conditionally remaps any schema with an default annotation to make it optional.
```typescript
import { Type, TOptional, Static, TSchema } from '@sinclair/typebox'
import { Type, TOptional, Static, TSchema } from '@alkdev/typebox'
import { TRecursiveMap, TMappingType, Options } from './prototypes'
+2 -2
View File
@@ -1,6 +1,6 @@
/*--------------------------------------------------------------------------
@sinclair/typebox/prototypes
@alkdev/typebox/prototypes
The MIT License (MIT)
@@ -26,7 +26,7 @@ THE SOFTWARE.
---------------------------------------------------------------------------*/
import * as Types from '@sinclair/typebox'
import * as Types from '@alkdev/typebox'
// ------------------------------------------------------------------
// Mapping: Functions and Type
+2 -2
View File
@@ -1,6 +1,6 @@
/*--------------------------------------------------------------------------
@sinclair/typebox/prototypes
@alkdev/typebox/prototypes
The MIT License (MIT)
@@ -26,7 +26,7 @@ THE SOFTWARE.
---------------------------------------------------------------------------*/
import { TypeRegistry, Kind, TSchema, SchemaOptions } from '@sinclair/typebox'
import { TypeRegistry, Kind, TSchema, SchemaOptions } from '@alkdev/typebox'
// -------------------------------------------------------------------------------------
// TUnionEnum
+3 -3
View File
@@ -1,6 +1,6 @@
/*--------------------------------------------------------------------------
@sinclair/typebox/prototypes
@alkdev/typebox/prototypes
The MIT License (MIT)
@@ -26,8 +26,8 @@ THE SOFTWARE.
---------------------------------------------------------------------------*/
import { TypeRegistry, Kind, Static, TSchema, SchemaOptions } from '@sinclair/typebox'
import { Value } from '@sinclair/typebox/value'
import { TypeRegistry, Kind, Static, TSchema, SchemaOptions } from '@alkdev/typebox'
import { Value } from '@alkdev/typebox/value'
// -------------------------------------------------------------------------------------
// TUnionOneOf