- 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)
19 lines
398 B
TypeScript
19 lines
398 B
TypeScript
import { Expect } from './assert'
|
|
import { Type, TSchema } from '@alkdev/typebox'
|
|
|
|
// Asserts combinatory modifiers
|
|
{
|
|
const T = Type.Object({
|
|
A: Type.ReadonlyOptional(Type.String()),
|
|
B: Type.Readonly(Type.String()),
|
|
C: Type.Optional(Type.String()),
|
|
D: Type.String(),
|
|
})
|
|
Expect(T).ToStatic<{
|
|
readonly A?: string
|
|
readonly B: string
|
|
C?: string
|
|
D: string
|
|
}>()
|
|
}
|