Skip to content

Commit

Permalink
adds URL as valid type for options.url
Browse files Browse the repository at this point in the history
since both phin and centra works with `options.url` being of type `URL` instead of `string`
  • Loading branch information
benkroeger authored Jul 24, 2020
1 parent 1f7bb99 commit d887f46
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion types.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import * as http from 'http'

interface IOptionsBase {
url: string
url: string | URL
method?: string
headers?: object
core?: http.ClientRequestArgs
Expand Down

0 comments on commit d887f46

Please sign in to comment.