Optional
box.toString.Options.namespaceAlias
By default, box.toString will prefix all schemas with T.
box.toString
T
If you'd like to change this behavior, you can configure this option using the namespaceAlias option.
namespaceAlias
import * as typebox from '@sinclair/typebox'import { box } from '@traversable/typebox'box.toString(typebox.Number()) // => "T.Number()"box.toString(typebox.Number(), { namespaceAlias: 'typebox' }) // => "typebox.Number()" Copy
import * as typebox from '@sinclair/typebox'import { box } from '@traversable/typebox'box.toString(typebox.Number()) // => "T.Number()"box.toString(typebox.Number(), { namespaceAlias: 'typebox' }) // => "typebox.Number()"
defaults.namespaceAlias
box.toString.Options.namespaceAlias
By default,
box.toString
will prefix all schemas withT
.If you'd like to change this behavior, you can configure this option using the
namespaceAlias
option.