InferIssue
Utility type for inferring the possible issue types from a schema.
Example​
import { InferIssue, object, string, enumeration } from "@sodd/core";
const userSchema = object({
name: string(),
favoriteFood: enumeration(["burger", "hotdog", "sodd"]),
});
type UserIssue = InferIssue<typeof userSchema>;
// => InvalidTypeIssue | InvalidEnumValueIssue<["burger", "hotdog", "sodd"]> | MissingKeyIssue