0 Replies Latest reply on Oct 18, 2019 4:13 PM by Dan Curtis

    ojModel error types

    Dan Curtis

      Hi guys,

       

      We are trying to extend the Model type shipped with JET 7.2 (/@oracle/oraclejet/dist/types/ojmodel/index.d.ts), but we have come across an issue with the types with the .save method.

       

      It seems the type for the error callback specifies a Model object as the first parameter, but in actual usage we are getting the xhr back as the first parameter. I'd imagine that this also applies to the other methods (destroy, fetch etc).

       

       

      We also noticed that validate is spelt incorrectly on this type too.