* add discriminator.ts helper Allow extension and inheritance of base models with discriminator models. * Update index.ts * fix typo in index.ts
* add discriminator.ts helper Allow extension and inheritance of base models with discriminator models. * Update index.ts * fix typo in index.ts