diff --git a/readme.md b/readme.md index 86aac555..239e894e 100644 --- a/readme.md +++ b/readme.md @@ -53,7 +53,7 @@ type T = Static // 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 @@ -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, // }> ``` diff --git a/src/type/guard/type.ts b/src/type/guard/type.ts index f80b24fe..b2e9daa9 100644 --- a/src/type/guard/type.ts +++ b/src/type/guard/type.ts @@ -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'