- 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)
14 lines
271 B
TypeScript
14 lines
271 B
TypeScript
import { Expect } from './assert'
|
|
import { Type, Static } from '@alkdev/typebox'
|
|
|
|
{
|
|
const T = Type.String({ $id: 'T' })
|
|
const R = Type.Ref('T')
|
|
|
|
type T = Static<typeof T>
|
|
type R = Static<typeof R>
|
|
|
|
Expect(T).ToStatic<string>()
|
|
Expect(R).ToStatic<unknown>()
|
|
}
|