christianmalek / vuex-rest-api

A utility to simplify the use of REST APIs with Vuex
http://vuex-rest-api.org
MIT License
382 stars 48 forks source link

Add support of mapping response object to typed model objects #85

Closed Koc closed 3 years ago

Koc commented 6 years ago

It would be nice add support mapping response to typed classes. Maybe reuse existent sollution like https://github.com/jf3096/json-typescript-mapper . Also serialize typed request payloads to plain json.

We can get self-documented methods, request payloads and autocomplete for return types.

christianmalek commented 6 years ago

Hey @Koc,

I'll consider it. Thanks for your idea!

PRs are by the way very welcome.