Skip to content

Conversation

@HennerM
Copy link
Collaborator

@HennerM HennerM commented Oct 11, 2016

Typescript supports Generics. So therefore this can be used to provide more type safety. I modified all methods that return JsonApiModel or JsonApiModel[] so that they return the specific type. Users of the library will then no longer have tocast to the their own subtype of JsonApiModel.

@coveralls
Copy link

coveralls commented Oct 11, 2016

Coverage Status

Coverage remained the same at 54.452% when pulling dbcbf9e on HennerM:make-methods-generic into 0766280 on ghidoz:master.

@ghidoz ghidoz merged commit 4120437 into ghidoz:master Oct 12, 2016
@HennerM HennerM deleted the make-methods-generic branch March 16, 2017 21:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants