import { RawSchema , rawSchemaToSchema } from "../../rawSchemaToSchema" ; import { CompilationResult } from "../../types" ; import { vCompileSchema } from "./vCompileSchema" ; export function vCompiler < T = any > ( rawSchema ) { const schema = rawSchemaToSchema ( rawSchema ) ; return vCompileSchema < T > ( schema ) ; }