import { zodToJsonSchema } from "zod-to-json-schema"; type Check = A extends B ? true : false; export const isFunction: Check = true; export const isNotArray: Check = false; export function $schemaIsString(schema: ReturnType) { if ("$schema" in schema && schema.$schema) { schema.$schema.toLowerCase(); // @ts-expect-error schema.$schema * 2; } }