Closed armaaar closed 4 years ago
@Scotley, Could this please be merged? My project is waiting for this before using Vuex-orm as the errors are blocking.
Apologies for the delay. I have actually reviewed this and will merge it now.
Thank you!
Thanks for this update. I was waiting for this too.
Fixes #3 The issue isn't from Vuex-ORM itself. By looking at Single Table Inheritance at the Vuex-ORM we can obviously see that
types
is a function but we clearly initialize it as an object inmodel.ts
.Also the
types
parameter can beundefined
but there was no check if it was undefined before using it causing trouble.I've fixed both issues built. I've to point that from my tiny dive into this package that it isn't fully ready yet for table inheritance features built in Vuex-ORM but still is great for simple use cases.