TypeOf<S>
Types can be inferred based on validators:
import { nonEmpty, minStringLength, nil, 位, object, string } from '@typeofweb/schema';
import type { TypeOf } from '@typeofweb/schema';
const blogSchema = object({
  title: 位(string, minStringLength(10)),
  description: 位(string, nil),
  href: 位(string, nil, nonEmpty),
  rssUrl: 位(string, nil, nonEmpty),
})();
type Blog = TypeOf<typeof blogSchema>;
// type Blog = {
//   readonly title: string;
//   readonly description?: string | null | undefined;
//   readonly href?: string | null | undefined;
//   readonly rssUrl?: string | null | undefined;
// }