- 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)
25 lines
490 B
TypeScript
25 lines
490 B
TypeScript
import { Expect } from './assert'
|
|
import { Type } from '@alkdev/typebox'
|
|
|
|
Expect(Type.Array(Type.String())).ToStatic<string[]>()
|
|
|
|
Expect(
|
|
Type.Array(
|
|
Type.Object({
|
|
x: Type.Number(),
|
|
y: Type.Boolean(),
|
|
z: Type.String(),
|
|
}),
|
|
),
|
|
).ToStatic<
|
|
{
|
|
x: number
|
|
y: boolean
|
|
z: string
|
|
}[]
|
|
>()
|
|
|
|
Expect(Type.Array(Type.Array(Type.String()))).ToStatic<string[][]>()
|
|
|
|
Expect(Type.Array(Type.Tuple([Type.String(), Type.Number()]))).ToStatic<[string, number][]>()
|