Skip to content

Commit

Permalink
Fix Readme Error | Update Overview
Browse files Browse the repository at this point in the history
  • Loading branch information
sinclairzx81 committed Apr 27, 2024
1 parent fb3e28c commit f1a4324
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions readme.md
Expand Up @@ -53,7 +53,7 @@ type T = Static<typeof T> // type T = {
TypeBox is a runtime type builder that creates in-memory Json Schema objects that infer as TypeScript types. The schematics produced by this library are designed to match the static type checking rules of the TypeScript compiler. TypeBox offers a unified type that can be statically checked by TypeScript and runtime asserted using standard Json Schema validation.
This library is designed to allow Json Schema to compose with the same flexibility as TypeScript's programmable type system. It can be used as a simple tool to build up complex schematics or integrated into REST and RPC services to help validate data received over the wire.
This library is designed to allow Json Schema to compose with a similar flexibility to TypeScript's type system. It can be used as a simple tool to build up complex schematics or integrated into REST and RPC services to help validate data received over the wire.
License MIT
Expand Down Expand Up @@ -895,9 +895,9 @@ const K = Type.TemplateLiteral('prop${A|B|C}') // const K: TTemplateLitera
// ]>

const R = Type.Record(K, Type.String()) // const R: TObject<{
// hello1: TString,
// hello2: TString,
// hello3: TString,
// propA: TString,
// propB: TString,
// propC: TString,
// }>
```
Expand Down
2 changes: 1 addition & 1 deletion src/type/guard/type.ts
Expand Up @@ -30,7 +30,7 @@ import * as ValueGuard from './value'
import { Kind, Hint, TransformKind, ReadonlyKind, OptionalKind } from '../symbols/index'
import { TypeBoxError } from '../error/index'
import { TransformOptions } from '../transform/index'
import { TTemplateLiteral, TTemplateLiteralKind } from '../template-literal/index'
import { TTemplateLiteral } from '../template-literal/index'
import { TArray } from '../array/index'
import { TBoolean } from '../boolean/index'
import type { TRecord } from '../record/index'
Expand Down

0 comments on commit f1a4324

Please sign in to comment.