Comparing version 0.0.4 to 0.0.5
{ | ||
"name": "xfetch-js", | ||
"version": "0.0.4", | ||
"version": "0.0.5", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "xfetch.js", |
@@ -13,4 +13,5 @@ interface XPromise<T> extends Promise<T> { | ||
} | ||
type originalfetch = GlobalFetch['fetch'] | ||
type fetch = (input: string, init?: XRequestInit) => XPromise<Response> | ||
interface XFetch extends GlobalFetch { | ||
interface XFetch { | ||
(input: string, init?: XRequestInit): XPromise<Response> | ||
@@ -23,5 +24,5 @@ get: fetch | ||
head: fetch | ||
create(fetch: GlobalFetch): XFetch | ||
create(fetch: originalfetch): XFetch | ||
} | ||
declare const xfetch: XFetch | ||
export = xfetch |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
5674
102