Q: Error : TS2339 Property 'shape' does not exist on type 'typeof create' import * as yup from 'yup';

const loginSchema = yup.object.shape({
    email: yup.string().required('Email Required !'),
    pswd: yup.string().required('Password Required !')
  });

Error is in shape does not exist in yup.object whereas official documentation uses same.
Thanks in advance for help!

A: It was an typo yup.obejct.shape() It should be yup.object().shape().
