• Generates a simplified representation of a yup schema.

    Type Parameters

    • T extends BaseObjectSchema

    Parameters

    • schema: T

    Returns Pick<SchemaType<T>, "fields">