@traversable/schema
    Preparing search index...
    interface Options {
        namespaceAlias?: string;
    }

    Hierarchy

    • Partial<typeof defaults>
      • Options
    Index

    Properties

    Properties

    namespaceAlias?: string = ...

    By default, box.toString will prefix all schemas with T.

    If you'd like to change this behavior, you can configure this option using the namespaceAlias option.

    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()"