export function schemaToIoTs()

in src/client/src/schema/validation/schema_to_io_ts.ts [103:112]


export function schemaToIoTs<Base>(rootSchema: RootSchema<Base>): t.Type<Record<string, unknown>> {
  try {
    return schemaObjectToIoTs({ properties: rootSchema });
  } catch (err) {
    if (err.failedKey) {
      err.message = `Malformed schema for key [${err.failedKey.join('.')}]: ${err.message}`;
    }
    throw err;
  }
}