update jsonp docs

This commit is contained in:
Leo Horie 2016-12-02 23:07:49 -05:00
parent 4e25e170e9
commit cfe5e13667

View file

@ -26,10 +26,11 @@ m.jsonp({
### Signature
`promise = m.jsonp(options)`
`promise = m.jsonp([url,] options)`
Argument | Type | Required | Description
---------------------- | --------------------------------- | -------- | ---
`url` | `String` | No | If present, it's equivalent to having the option `{url: url}`. Values passed to the `options` argument override options set via this shorthand.
`options.url` | `String` | Yes | The URL to send the request to. The URL may be either absolute or relative, and it may contain [interpolations](#dynamic-urls).
`options.data` | `any` | No | The data to be interpolated into the URL and serialized into the querystring.
`options.type` | `any = Function(any)` | No | A constructor to be applied to each object in the response. Defaults to the [identity function](https://en.wikipedia.org/wiki/Identity_function).