File tree Expand file tree Collapse file tree 5 files changed +5
-5
lines changed
authgear-react-native/src Expand file tree Collapse file tree 5 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -425,7 +425,7 @@ export class CapacitorContainer {
425425 *
426426 * @public
427427 */
428- async fetch ( input : RequestInfo , init ?: RequestInit ) : Promise < Response > {
428+ async fetch ( input : RequestInfo | URL , init ?: RequestInit ) : Promise < Response > {
429429 return this . baseContainer . fetch ( input , init ) ;
430430 }
431431
Original file line number Diff line number Diff line change @@ -99,7 +99,7 @@ export abstract class _BaseAPIClient {
9999 return this . _doFetch ( request ) ;
100100 }
101101
102- async fetch ( input : RequestInfo , init ?: RequestInit ) : Promise < Response > {
102+ async fetch ( input : RequestInfo | URL , init ?: RequestInit ) : Promise < Response > {
103103 if ( this . _requestClass == null ) {
104104 throw new AuthgearError ( "missing requestClass in api client" ) ;
105105 }
Original file line number Diff line number Diff line change @@ -314,7 +314,7 @@ export class _BaseContainer<T extends _BaseAPIClient> {
314314 return false ;
315315 }
316316
317- async fetch ( input : RequestInfo , init ?: RequestInit ) : Promise < Response > {
317+ async fetch ( input : RequestInfo | URL , init ?: RequestInit ) : Promise < Response > {
318318 return this . apiClient . fetch ( input , init ) ;
319319 }
320320
Original file line number Diff line number Diff line change @@ -868,7 +868,7 @@ export class ReactNativeContainer {
868868 *
869869 * @public
870870 */
871- async fetch ( input : RequestInfo , init ?: RequestInit ) : Promise < Response > {
871+ async fetch ( input : RequestInfo | URL , init ?: RequestInit ) : Promise < Response > {
872872 return this . baseContainer . fetch ( input , init ) ;
873873 }
874874
Original file line number Diff line number Diff line change @@ -774,7 +774,7 @@ export class WebContainer {
774774 *
775775 * @public
776776 */
777- async fetch ( input : RequestInfo , init ?: RequestInit ) : Promise < Response > {
777+ async fetch ( input : RequestInfo | URL , init ?: RequestInit ) : Promise < Response > {
778778 return this . baseContainer . fetch ( input , init ) ;
779779 }
780780}
You can’t perform that action at this time.
0 commit comments