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:
2026-04-23 13:22:31 +00:00
parent 11f18ac6e9
commit bd758c2342
981 changed files with 1676 additions and 2054 deletions

View File

@@ -1,4 +1,4 @@
import { Expect } from './assert'
import { Type } from '@sinclair/typebox'
import { Type } from '@alkdev/typebox'
Expect(Type.Any()).ToStatic<any>()

View File

@@ -1,5 +1,5 @@
import { Expect } from './assert'
import { Type } from '@sinclair/typebox'
import { Type } from '@alkdev/typebox'
const T = Type.Object({
x: Type.Argument(0),

View File

@@ -1,5 +1,5 @@
import { Expect } from './assert'
import { Type } from '@sinclair/typebox'
import { Type } from '@alkdev/typebox'
Expect(Type.Array(Type.String())).ToStatic<string[]>()

View File

@@ -1,4 +1,4 @@
import { Static, StaticDecode, StaticEncode, TSchema } from '@sinclair/typebox'
import { Static, StaticDecode, StaticEncode, TSchema } from '@alkdev/typebox'
// ------------------------------------------------------------------
// Symbols

View File

@@ -1,4 +1,4 @@
import { Expect } from './assert'
import { Type } from '@sinclair/typebox'
import { Type } from '@alkdev/typebox'
Expect(Type.AsyncIterator(Type.String())).ToStatic<AsyncIterableIterator<string>>()

View File

@@ -1,5 +1,5 @@
import { Expect } from './assert'
import { Type } from '@sinclair/typebox'
import { Type } from '@alkdev/typebox'
Expect(Type.Awaited(Type.String())).ToStatic<string>()

View File

@@ -1,4 +1,4 @@
import { Expect } from './assert'
import { Type } from '@sinclair/typebox'
import { Type } from '@alkdev/typebox'
Expect(Type.BigInt()).ToStatic<bigint>()

View File

@@ -1,4 +1,4 @@
import { Expect } from './assert'
import { Type } from '@sinclair/typebox'
import { Type } from '@alkdev/typebox'
Expect(Type.Boolean()).ToStatic<boolean>()

View File

@@ -1,5 +1,5 @@
import { Expect } from './assert'
import { Type } from '@sinclair/typebox'
import { Type } from '@alkdev/typebox'
Expect(Type.Capitalize(Type.Literal('hello'))).ToStatic<'Hello'>()

View File

@@ -1,5 +1,5 @@
import { Expect } from './assert'
import { Type, TOptional, TObject, TUnion, TIntersect, TNumber, TString, TBoolean } from '@sinclair/typebox'
import { Type, TOptional, TObject, TUnion, TIntersect, TNumber, TString, TBoolean } from '@alkdev/typebox'
// ----------------------------------------------------------------------------
// Overlapping - Non Varying

View File

@@ -1,5 +1,5 @@
import { Expect } from './assert'
import { Type } from '@sinclair/typebox'
import { Type } from '@alkdev/typebox'
// ------------------------------------------------------------------
// Identity Types

View File

@@ -1,5 +1,5 @@
import { Expect } from './assert'
import { Type } from '@sinclair/typebox'
import { Type } from '@alkdev/typebox'
const C = Type.Constructor(
[Type.Number(), Type.String()],

View File

@@ -1,5 +1,5 @@
import { Expect } from './assert'
import { Type } from '@sinclair/typebox'
import { Type } from '@alkdev/typebox'
{
// simple
const T = Type.Constructor([Type.Number(), Type.Boolean()], Type.String())

View File

@@ -1,4 +1,4 @@
import { Expect } from './assert'
import { Type } from '@sinclair/typebox'
import { Type } from '@alkdev/typebox'
Expect(Type.Date()).ToStatic<Date>()

View File

@@ -1,5 +1,5 @@
import { Expect } from './assert'
import { Type } from '@sinclair/typebox'
import { Type } from '@alkdev/typebox'
{
// expect all variants

View File

@@ -1,4 +1,4 @@
import { Type, TLiteral, TUnion } from '@sinclair/typebox'
import { Type, TLiteral, TUnion } from '@alkdev/typebox'
import { Expect } from './assert'
{

View File

@@ -1,4 +1,4 @@
import { Type, TLiteral, TUnion } from '@sinclair/typebox'
import { Type, TLiteral, TUnion } from '@alkdev/typebox'
import { Expect } from './assert'
{

View File

@@ -1,5 +1,5 @@
import { Expect } from './assert'
import { Type } from '@sinclair/typebox'
import { Type } from '@alkdev/typebox'
{
// simple

View File

@@ -1,5 +1,5 @@
import { Expect } from './assert'
import { Type, Static } from '@sinclair/typebox'
import { Type, Static } from '@alkdev/typebox'
// ------------------------------------------------------------------
// Enum 1

View File

@@ -1,5 +1,5 @@
import { Expect } from './assert'
import { Type, Static } from '@sinclair/typebox'
import { Type, Static } from '@alkdev/typebox'
{
const T = Type.Object({

View File

@@ -1,5 +1,5 @@
import { Expect } from './assert'
import { Type, Static } from '@sinclair/typebox'
import { Type, Static } from '@alkdev/typebox'
{
const A = Type.Object({

View File

@@ -1,4 +1,4 @@
import { Expect } from './assert'
import { Type } from '@sinclair/typebox'
import { Type } from '@alkdev/typebox'
Expect(Type.Iterator(Type.String())).ToStatic<IterableIterator<string>>()

View File

@@ -1,5 +1,5 @@
import { Expect } from './assert'
import { Type } from '@sinclair/typebox'
import { Type } from '@alkdev/typebox'
{
const K = Type.KeyOf(

View File

@@ -1,5 +1,5 @@
import { Expect } from './assert'
import { Type } from '@sinclair/typebox'
import { Type } from '@alkdev/typebox'
Expect(Type.Literal('hello')).ToStatic<'hello'>()

View File

@@ -1,5 +1,5 @@
import { Expect } from './assert'
import { Type } from '@sinclair/typebox'
import { Type } from '@alkdev/typebox'
Expect(Type.Lowercase(Type.Literal('HELLO'))).ToStatic<'hello'>()

View File

@@ -1,5 +1,5 @@
import { Expect } from './assert'
import { Static, Type } from '@sinclair/typebox'
import { Static, Type } from '@alkdev/typebox'
// prettier-ignore
{ // Generative

View File

@@ -1,5 +1,5 @@
import { Expect } from './assert'
import { Type, TSchema } from '@sinclair/typebox'
import { Type, TSchema } from '@alkdev/typebox'
// Asserts combinatory modifiers
{

View File

@@ -1,5 +1,5 @@
import { Expect } from './assert'
import { Type } from '@sinclair/typebox'
import { Type } from '@alkdev/typebox'
{
const T = Type.Never()

View File

@@ -1,5 +1,5 @@
import { Expect } from './assert'
import { Type } from '@sinclair/typebox'
import { Type } from '@alkdev/typebox'
{
// -------------------------------------------------------------------------

View File

@@ -1,4 +1,4 @@
import { Expect } from './assert'
import { Type } from '@sinclair/typebox'
import { Type } from '@alkdev/typebox'
Expect(Type.Null()).ToStatic<null>()

View File

@@ -1,4 +1,4 @@
import { Expect } from './assert'
import { Type } from '@sinclair/typebox'
import { Type } from '@alkdev/typebox'
Expect(Type.Number()).ToStatic<number>()

View File

@@ -1,5 +1,5 @@
import { Expect, IsExtendsMutual } from './assert'
import { Type, type TObject, type Static, type TNumber } from '@sinclair/typebox'
import { Type, type TObject, type Static, type TNumber } from '@alkdev/typebox'
{
const T = Type.Object({
A: Type.String(),

View File

@@ -1,5 +1,5 @@
import { Expect } from './assert'
import { Type, Static } from '@sinclair/typebox'
import { Type, Static } from '@alkdev/typebox'
{
const A = Type.Object({

View File

@@ -1,5 +1,5 @@
import { Expect } from './assert'
import { Type, Static } from '@sinclair/typebox'
import { Type, Static } from '@alkdev/typebox'
{
const T = Type.Object({

View File

@@ -1,5 +1,5 @@
import { Expect } from './assert'
import { Type } from '@sinclair/typebox'
import { Type } from '@alkdev/typebox'
const C = Type.Function(
[Type.Number(), Type.String()],

View File

@@ -1,6 +1,6 @@
import { Expect } from './assert'
import { Type, Static } from '@sinclair/typebox'
import * as Types from '@sinclair/typebox'
import { Type, Static } from '@alkdev/typebox'
import * as Types from '@alkdev/typebox'
{
const T = Type.Partial(
Type.Object({

View File

@@ -1,5 +1,5 @@
import { Expect } from './assert'
import { Type, Static } from '@sinclair/typebox'
import { Type, Static } from '@alkdev/typebox'
{
const A = Type.Object({

View File

@@ -1,5 +1,5 @@
import { Expect } from './assert'
import { Type, TSchema, TReadonlyOptional } from '@sinclair/typebox'
import { Type, TSchema, TReadonlyOptional } from '@alkdev/typebox'
{
const T = Type.Object({

View File

@@ -1,5 +1,5 @@
import { Expect } from './assert'
import { Type, Static } from '@sinclair/typebox'
import { Type, Static } from '@alkdev/typebox'
{
const T = Type.Object({

View File

@@ -1,5 +1,5 @@
import { Expect } from './assert'
import { Type, Static } from '@sinclair/typebox'
import { Type, Static } from '@alkdev/typebox'
{
// type K = string
const K = Type.String()

View File

@@ -1,4 +1,4 @@
import { Static, Type } from '@sinclair/typebox'
import { Static, Type } from '@alkdev/typebox'
import { Expect } from './assert'
{

View File

@@ -1,5 +1,5 @@
import { Expect } from './assert'
import { Type, Static } from '@sinclair/typebox'
import { Type, Static } from '@alkdev/typebox'
{
const T = Type.String({ $id: 'T' })

View File

@@ -1,4 +1,4 @@
import { Expect } from './assert'
import { Type } from '@sinclair/typebox'
import { Type } from '@alkdev/typebox'
Expect(Type.RegExp(/foo/)).ToStatic<string>()

View File

@@ -1,6 +1,6 @@
import { Expect } from './assert'
import { Type, Static } from '@sinclair/typebox'
import * as Types from '@sinclair/typebox'
import { Type, Static } from '@alkdev/typebox'
import * as Types from '@alkdev/typebox'
{
const T = Type.Required(
Type.Object({

View File

@@ -1,5 +1,5 @@
import { Expect } from './assert'
import { Type, Static } from '@sinclair/typebox'
import { Type, Static } from '@alkdev/typebox'
{
// union never
const A = Type.String()

View File

@@ -1,5 +1,5 @@
import { Expect } from './assert'
import { Type, Static } from '@sinclair/typebox'
import { Type, Static } from '@alkdev/typebox'
{
const T = Type.ReturnType(Type.Function([], Type.String()))

View File

@@ -1,4 +1,4 @@
import { Expect } from './assert'
import { Type } from '@sinclair/typebox'
import { Type } from '@alkdev/typebox'
Expect(Type.String()).ToStatic<string>()

View File

@@ -1,4 +1,4 @@
import { Expect } from './assert'
import { Type } from '@sinclair/typebox'
import { Type } from '@alkdev/typebox'
Expect(Type.Symbol()).ToStatic<symbol>()

View File

@@ -1,5 +1,5 @@
import { Expect } from './assert'
import { Syntax } from '@sinclair/typebox/syntax'
import { Syntax } from '@alkdev/typebox/syntax'
// prettier-ignore
{

View File

@@ -1,5 +1,5 @@
import { Expect } from './assert'
import { Type } from '@sinclair/typebox'
import { Type } from '@alkdev/typebox'
{
// Empty

View File

@@ -1,6 +1,6 @@
import { Type, TSchema, Static, StaticDecode, TObject, TNumber } from '@sinclair/typebox'
import { TypeCheck } from '@sinclair/typebox/compiler'
import { Value } from '@sinclair/typebox/value'
import { Type, TSchema, Static, StaticDecode, TObject, TNumber } from '@alkdev/typebox'
import { TypeCheck } from '@alkdev/typebox/compiler'
import { Value } from '@alkdev/typebox/value'
import { Expect } from './assert'
{

View File

@@ -1,5 +1,5 @@
import { Expect } from './assert'
import { Type, Static } from '@sinclair/typebox'
import { Type, Static } from '@alkdev/typebox'
{
const T = Type.Tuple([Type.Number(), Type.String(), Type.Boolean()])

View File

@@ -1,5 +1,5 @@
import { Expect } from './assert'
import { Type } from '@sinclair/typebox'
import { Type } from '@alkdev/typebox'
Expect(Type.Uncapitalize(Type.Literal('HELLO'))).ToStatic<'hELLO'>()

View File

@@ -1,5 +1,5 @@
import { Expect } from './assert'
import { Type, Static } from '@sinclair/typebox'
import { Type, Static } from '@alkdev/typebox'
{
const A = Type.String()

View File

@@ -1,4 +1,4 @@
import { Expect } from './assert'
import { Type } from '@sinclair/typebox'
import { Type } from '@alkdev/typebox'
Expect(Type.Unknown()).ToStatic<unknown>()

View File

@@ -1,5 +1,5 @@
import { Expect } from './assert'
import { Type } from '@sinclair/typebox'
import { Type } from '@alkdev/typebox'
Expect(Type.Uppercase(Type.Literal('hello'))).ToStatic<'HELLO'>()