diff --git a/docs/jsonp.md b/docs/jsonp.md index f0ee9b38..1e2300f7 100644 --- a/docs/jsonp.md +++ b/docs/jsonp.md @@ -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).