/* eslint-disable @typescript-eslint/ban-types */ import { CoreValidator, TypeOf } from 'suretype' import { Static, TSchema } from 'typebox' // Determine if the generic "SchemaLibType" is Suretype's CoreValidator or Typebox's TSchema export type TSchemaLib = SchemaLibType extends CoreValidator ? TypeOf : SchemaLibType extends TSchema ? Static : unknown export type TJSONSchema = Record export type Prettify = { [Key in keyof TObject]: TObject[Key] } & {}