moonlight-labs / aor-jsonapi-client

JSON-API compliant restClient for Admin-On-Rest
15 stars 21 forks source link

where does type detected? #7

Open hibiarata opened 6 years ago

hibiarata commented 6 years ago

I'm newbie of javascript.

Please tell me how detect type in this code.

I understand apiUrl & httpClient is arguments. export default (apiUrl, httpClient = jsonApiHttpClient) => {

I can't understand this phrase. return (type, resource, params) => {

Who detect type, resource, params?

I feel that this post is not suitable on this place.Sorry..