Monday, 22 July 2019

typescript from json


https://app.quicktype.io/

http://cloudmark.github.io/Json-Mapping/

https://stackoverflow.com/questions/22885995/how-do-i-initialize-a-typescript-object-with-a-json-object

https://github.com/frisos-todo-apps/MEAN-ToDo/blob/master/server/src/controllers/to-do.controller.ts

first of all, if you don't create setter/getter (especially getter), you should be ok of use the json object directly. it wont be able to cast to the actual type but your code should run ok.

i am still not able to find out how to deal with getters.

No comments:

Post a comment