Skip to content

Commit

Permalink
feat: proper import mapping
Browse files Browse the repository at this point in the history
  • Loading branch information
Nytelife26 authored and tbnritzdoge committed Mar 21, 2021
1 parent 281ab7f commit 410e534
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ import { URL } from "url";
* @param {(URL | string)} url
* @param {HTTPMethod} [method='GET']
*/
export = function petitio(url: URL | string, method: HTTPMethod = "GET") {
export function petitio(url: URL | string, method: HTTPMethod = "GET") {
return new PetitioRequest(url, method);
}
export default petitio;
if (module) module.exports = petitio;

0 comments on commit 410e534

Please sign in to comment.