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:
@@ -1,4 +1,4 @@
|
||||
import { Expect } from './assert'
|
||||
import { Type } from '@sinclair/typebox'
|
||||
import { Type } from '@alkdev/typebox'
|
||||
|
||||
Expect(Type.Any()).ToStatic<any>()
|
||||
|
||||
@@ -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),
|
||||
|
||||
@@ -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[]>()
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { Static, StaticDecode, StaticEncode, TSchema } from '@sinclair/typebox'
|
||||
import { Static, StaticDecode, StaticEncode, TSchema } from '@alkdev/typebox'
|
||||
|
||||
// ------------------------------------------------------------------
|
||||
// Symbols
|
||||
|
||||
@@ -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>>()
|
||||
|
||||
@@ -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>()
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { Expect } from './assert'
|
||||
import { Type } from '@sinclair/typebox'
|
||||
import { Type } from '@alkdev/typebox'
|
||||
|
||||
Expect(Type.BigInt()).ToStatic<bigint>()
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { Expect } from './assert'
|
||||
import { Type } from '@sinclair/typebox'
|
||||
import { Type } from '@alkdev/typebox'
|
||||
|
||||
Expect(Type.Boolean()).ToStatic<boolean>()
|
||||
|
||||
@@ -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'>()
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { Expect } from './assert'
|
||||
import { Type } from '@sinclair/typebox'
|
||||
import { Type } from '@alkdev/typebox'
|
||||
|
||||
// ------------------------------------------------------------------
|
||||
// Identity Types
|
||||
|
||||
@@ -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()],
|
||||
|
||||
@@ -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())
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { Expect } from './assert'
|
||||
import { Type } from '@sinclair/typebox'
|
||||
import { Type } from '@alkdev/typebox'
|
||||
|
||||
Expect(Type.Date()).ToStatic<Date>()
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { Expect } from './assert'
|
||||
import { Type } from '@sinclair/typebox'
|
||||
import { Type } from '@alkdev/typebox'
|
||||
|
||||
{
|
||||
// expect all variants
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { Type, TLiteral, TUnion } from '@sinclair/typebox'
|
||||
import { Type, TLiteral, TUnion } from '@alkdev/typebox'
|
||||
import { Expect } from './assert'
|
||||
|
||||
{
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { Type, TLiteral, TUnion } from '@sinclair/typebox'
|
||||
import { Type, TLiteral, TUnion } from '@alkdev/typebox'
|
||||
import { Expect } from './assert'
|
||||
|
||||
{
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { Expect } from './assert'
|
||||
import { Type } from '@sinclair/typebox'
|
||||
import { Type } from '@alkdev/typebox'
|
||||
|
||||
{
|
||||
// simple
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { Expect } from './assert'
|
||||
import { Type, Static } from '@sinclair/typebox'
|
||||
import { Type, Static } from '@alkdev/typebox'
|
||||
|
||||
// ------------------------------------------------------------------
|
||||
// Enum 1
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { Expect } from './assert'
|
||||
import { Type, Static } from '@sinclair/typebox'
|
||||
import { Type, Static } from '@alkdev/typebox'
|
||||
|
||||
{
|
||||
const T = Type.Object({
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { Expect } from './assert'
|
||||
import { Type, Static } from '@sinclair/typebox'
|
||||
import { Type, Static } from '@alkdev/typebox'
|
||||
|
||||
{
|
||||
const A = Type.Object({
|
||||
|
||||
@@ -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>>()
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { Expect } from './assert'
|
||||
import { Type } from '@sinclair/typebox'
|
||||
import { Type } from '@alkdev/typebox'
|
||||
|
||||
{
|
||||
const K = Type.KeyOf(
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { Expect } from './assert'
|
||||
import { Type } from '@sinclair/typebox'
|
||||
import { Type } from '@alkdev/typebox'
|
||||
|
||||
Expect(Type.Literal('hello')).ToStatic<'hello'>()
|
||||
|
||||
|
||||
@@ -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'>()
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { Expect } from './assert'
|
||||
import { Static, Type } from '@sinclair/typebox'
|
||||
import { Static, Type } from '@alkdev/typebox'
|
||||
|
||||
// prettier-ignore
|
||||
{ // Generative
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { Expect } from './assert'
|
||||
import { Type, TSchema } from '@sinclair/typebox'
|
||||
import { Type, TSchema } from '@alkdev/typebox'
|
||||
|
||||
// Asserts combinatory modifiers
|
||||
{
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { Expect } from './assert'
|
||||
import { Type } from '@sinclair/typebox'
|
||||
import { Type } from '@alkdev/typebox'
|
||||
|
||||
{
|
||||
const T = Type.Never()
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { Expect } from './assert'
|
||||
import { Type } from '@sinclair/typebox'
|
||||
import { Type } from '@alkdev/typebox'
|
||||
|
||||
{
|
||||
// -------------------------------------------------------------------------
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { Expect } from './assert'
|
||||
import { Type } from '@sinclair/typebox'
|
||||
import { Type } from '@alkdev/typebox'
|
||||
|
||||
Expect(Type.Null()).ToStatic<null>()
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { Expect } from './assert'
|
||||
import { Type } from '@sinclair/typebox'
|
||||
import { Type } from '@alkdev/typebox'
|
||||
|
||||
Expect(Type.Number()).ToStatic<number>()
|
||||
|
||||
@@ -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(),
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { Expect } from './assert'
|
||||
import { Type, Static } from '@sinclair/typebox'
|
||||
import { Type, Static } from '@alkdev/typebox'
|
||||
|
||||
{
|
||||
const A = Type.Object({
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { Expect } from './assert'
|
||||
import { Type, Static } from '@sinclair/typebox'
|
||||
import { Type, Static } from '@alkdev/typebox'
|
||||
|
||||
{
|
||||
const T = Type.Object({
|
||||
|
||||
@@ -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()],
|
||||
|
||||
@@ -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({
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { Expect } from './assert'
|
||||
import { Type, Static } from '@sinclair/typebox'
|
||||
import { Type, Static } from '@alkdev/typebox'
|
||||
|
||||
{
|
||||
const A = Type.Object({
|
||||
|
||||
@@ -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({
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { Expect } from './assert'
|
||||
import { Type, Static } from '@sinclair/typebox'
|
||||
import { Type, Static } from '@alkdev/typebox'
|
||||
|
||||
{
|
||||
const T = Type.Object({
|
||||
|
||||
@@ -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()
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { Static, Type } from '@sinclair/typebox'
|
||||
import { Static, Type } from '@alkdev/typebox'
|
||||
import { Expect } from './assert'
|
||||
|
||||
{
|
||||
|
||||
@@ -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' })
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { Expect } from './assert'
|
||||
import { Type } from '@sinclair/typebox'
|
||||
import { Type } from '@alkdev/typebox'
|
||||
|
||||
Expect(Type.RegExp(/foo/)).ToStatic<string>()
|
||||
|
||||
@@ -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({
|
||||
|
||||
@@ -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()
|
||||
|
||||
@@ -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()))
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { Expect } from './assert'
|
||||
import { Type } from '@sinclair/typebox'
|
||||
import { Type } from '@alkdev/typebox'
|
||||
|
||||
Expect(Type.String()).ToStatic<string>()
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { Expect } from './assert'
|
||||
import { Type } from '@sinclair/typebox'
|
||||
import { Type } from '@alkdev/typebox'
|
||||
|
||||
Expect(Type.Symbol()).ToStatic<symbol>()
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { Expect } from './assert'
|
||||
import { Syntax } from '@sinclair/typebox/syntax'
|
||||
import { Syntax } from '@alkdev/typebox/syntax'
|
||||
|
||||
// prettier-ignore
|
||||
{
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { Expect } from './assert'
|
||||
import { Type } from '@sinclair/typebox'
|
||||
import { Type } from '@alkdev/typebox'
|
||||
|
||||
{
|
||||
// Empty
|
||||
|
||||
@@ -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'
|
||||
{
|
||||
|
||||
@@ -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()])
|
||||
|
||||
@@ -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'>()
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { Expect } from './assert'
|
||||
import { Type, Static } from '@sinclair/typebox'
|
||||
import { Type, Static } from '@alkdev/typebox'
|
||||
|
||||
{
|
||||
const A = Type.String()
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { Expect } from './assert'
|
||||
import { Type } from '@sinclair/typebox'
|
||||
import { Type } from '@alkdev/typebox'
|
||||
|
||||
Expect(Type.Unknown()).ToStatic<unknown>()
|
||||
|
||||
@@ -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'>()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user