omit
Creates a clone of a given object
schema without the specified properties. Similar to TypeScript's Omit
.
Example​
import { omit, object, string, number } from "@sodd/core";
const userSchema = object({
name: string(),
age: number(),
location: string(),
});
const userWithoutAgeSchema = omit(userSchema, ["age"]);