Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
// ReSharper disable InconsistentNaming

export class MyClass {
private http: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> };
private http: { fetch(input: string | URL | Request, init?: RequestInit): Promise<Response> };
private baseUrl: string;
protected jsonParseReviver: ((key: string, value: any) => any) | undefined = undefined;

constructor(baseUrl?: string, http?: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> }) {
this.http = http ? http : window as any;
constructor(baseUrl?: string, http?: { fetch(input: string | URL | Request, init?: RequestInit): Promise<Response> }) {
this.http = http ? http : globalThis as any;
this.baseUrl = baseUrl ?? "http://localhost:8080/";
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
// ReSharper disable InconsistentNaming

export class FileUploadClient {
private http: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> };
private http: { fetch(input: string | URL | Request, init?: RequestInit): Promise<Response> };
private baseUrl: string;
protected jsonParseReviver: ((key: string, value: any) => any) | undefined = undefined;

constructor(baseUrl?: string, http?: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> }) {
this.http = http ? http : window as any;
constructor(baseUrl?: string, http?: { fetch(input: string | URL | Request, init?: RequestInit): Promise<Response> }) {
this.http = http ? http : globalThis as any;
this.baseUrl = baseUrl ?? "";
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
// ReSharper disable InconsistentNaming

export class FileUploadClient {
private http: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> };
private http: { fetch(input: string | URL | Request, init?: RequestInit): Promise<Response> };
private baseUrl: string;
protected jsonParseReviver: ((key: string, value: any) => any) | undefined = undefined;

constructor(baseUrl?: string, http?: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> }) {
this.http = http ? http : window as any;
constructor(baseUrl?: string, http?: { fetch(input: string | URL | Request, init?: RequestInit): Promise<Response> }) {
this.http = http ? http : globalThis as any;
this.baseUrl = baseUrl ?? "";
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
// ReSharper disable InconsistentNaming

export class FileUploadClient {
private http: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> };
private http: { fetch(input: string | URL | Request, init?: RequestInit): Promise<Response> };
private baseUrl: string;
protected jsonParseReviver: ((key: string, value: any) => any) | undefined = undefined;

constructor(baseUrl?: string, http?: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> }) {
this.http = http ? http : window as any;
constructor(baseUrl?: string, http?: { fetch(input: string | URL | Request, init?: RequestInit): Promise<Response> }) {
this.http = http ? http : globalThis as any;
this.baseUrl = baseUrl ?? "";
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
// ReSharper disable InconsistentNaming

export class FileUploadClient {
private http: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> };
private http: { fetch(input: string | URL | Request, init?: RequestInit): Promise<Response> };
private baseUrl: string;
protected jsonParseReviver: ((key: string, value: any) => any) | undefined = undefined;

constructor(baseUrl?: string, http?: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> }) {
this.http = http ? http : window as any;
constructor(baseUrl?: string, http?: { fetch(input: string | URL | Request, init?: RequestInit): Promise<Response> }) {
this.http = http ? http : globalThis as any;
this.baseUrl = baseUrl ?? "";
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
// ReSharper disable InconsistentNaming

export class Client {
private http: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> };
private http: { fetch(input: string | URL | Request, init?: RequestInit): Promise<Response> };
private baseUrl: string;
protected jsonParseReviver: ((key: string, value: any) => any) | undefined = undefined;

constructor(baseUrl?: string, http?: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> }) {
this.http = http ? http : window as any;
constructor(baseUrl?: string, http?: { fetch(input: string | URL | Request, init?: RequestInit): Promise<Response> }) {
this.http = http ? http : globalThis as any;
this.baseUrl = baseUrl ?? "https://www.example.com/";
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
// ReSharper disable InconsistentNaming

export class MyClass {
private http: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> };
private http: { fetch(input: string | URL | Request, init?: RequestInit): Promise<Response> };
private baseUrl: string;
protected jsonParseReviver: ((key: string, value: any) => any) | undefined = undefined;

constructor(baseUrl?: string, http?: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> }) {
this.http = http ? http : window as any;
constructor(baseUrl?: string, http?: { fetch(input: string | URL | Request, init?: RequestInit): Promise<Response> }) {
this.http = http ? http : globalThis as any;
this.baseUrl = baseUrl ?? "";
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
// ReSharper disable InconsistentNaming

export class Client {
private http: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> };
private http: { fetch(input: string | URL | Request, init?: RequestInit): Promise<Response> };
private baseUrl: string;
protected jsonParseReviver: ((key: string, value: any) => any) | undefined = undefined;

constructor(baseUrl?: string, http?: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> }) {
this.http = http ? http : window as any;
constructor(baseUrl?: string, http?: { fetch(input: string | URL | Request, init?: RequestInit): Promise<Response> }) {
this.http = http ? http : globalThis as any;
this.baseUrl = baseUrl ?? "https://myapi.centralus-01.azurewebsites.net/";
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
// ReSharper disable InconsistentNaming

export class UrlEncodedRequestConsumingClient {
private http: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> };
private http: { fetch(input: string | URL | Request, init?: RequestInit): Promise<Response> };
private baseUrl: string;
protected jsonParseReviver: ((key: string, value: any) => any) | undefined = undefined;

constructor(baseUrl?: string, http?: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> }) {
this.http = http ? http : window as any;
constructor(baseUrl?: string, http?: { fetch(input: string | URL | Request, init?: RequestInit): Promise<Response> }) {
this.http = http ? http : globalThis as any;
this.baseUrl = baseUrl ?? "";
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@ export interface IUrlEncodedRequestConsumingClient {
}

export class UrlEncodedRequestConsumingClient implements IUrlEncodedRequestConsumingClient {
private http: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> };
private http: { fetch(input: string | URL | Request, init?: RequestInit): Promise<Response> };
private baseUrl: string;
protected jsonParseReviver: ((key: string, value: any) => any) | undefined = undefined;

constructor(baseUrl?: string, http?: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> }) {
this.http = http ? http : window as any;
constructor(baseUrl?: string, http?: { fetch(input: string | URL | Request, init?: RequestInit): Promise<Response> }) {
this.http = http ? http : globalThis as any;
this.baseUrl = baseUrl ?? "";
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
// ReSharper disable InconsistentNaming

export class UrlEncodedRequestConsumingClient {
private http: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> };
private http: { fetch(input: string | URL | Request, init?: RequestInit): Promise<Response> };
private baseUrl: string;
protected jsonParseReviver: ((key: string, value: any) => any) | undefined = undefined;

constructor(baseUrl?: string, http?: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> }) {
this.http = http ? http : window as any;
constructor(baseUrl?: string, http?: { fetch(input: string | URL | Request, init?: RequestInit): Promise<Response> }) {
this.http = http ? http : globalThis as any;
this.baseUrl = baseUrl ?? "";
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ interface IDiscussionClient {
}

class DiscussionClient implements IDiscussionClient {
private http: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> };
private http: { fetch(input: string | URL | Request, init?: RequestInit): Promise<Response> };
private baseUrl: string;
protected jsonParseReviver: ((key: string, value: any) => any) | undefined = undefined;

constructor(baseUrl?: string, http?: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> }) {
this.http = http ? http : window as any;
constructor(baseUrl?: string, http?: { fetch(input: string | URL | Request, init?: RequestInit): Promise<Response> }) {
this.http = http ? http : globalThis as any;
this.baseUrl = baseUrl ?? "";
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ export interface IDiscussionClient {
}

export class DiscussionClient implements IDiscussionClient {
private http: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> };
private http: { fetch(input: string | URL | Request, init?: RequestInit): Promise<Response> };
private baseUrl: string;
protected jsonParseReviver: ((key: string, value: any) => any) | undefined = undefined;

constructor(baseUrl?: string, http?: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> }) {
this.http = http ? http : window as any;
constructor(baseUrl?: string, http?: { fetch(input: string | URL | Request, init?: RequestInit): Promise<Response> }) {
this.http = http ? http : globalThis as any;
this.baseUrl = baseUrl ?? "";
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
// ReSharper disable InconsistentNaming

export class UrlEncodedRequestConsumingClient {
private http: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> };
private http: { fetch(input: string | URL | Request, init?: RequestInit): Promise<Response> };
private baseUrl: string;
protected jsonParseReviver: ((key: string, value: any) => any) | undefined = undefined;

constructor(baseUrl?: string, http?: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> }) {
this.http = http ? http : window as any;
constructor(baseUrl?: string, http?: { fetch(input: string | URL | Request, init?: RequestInit): Promise<Response> }) {
this.http = http ? http : globalThis as any;
this.baseUrl = baseUrl ?? "";
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
// ReSharper disable InconsistentNaming

export class UrlEncodedRequestConsumingClient {
private http: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> };
private http: { fetch(input: string | URL | Request, init?: RequestInit): Promise<Response> };
private baseUrl: string;
protected jsonParseReviver: ((key: string, value: any) => any) | undefined = undefined;

constructor(baseUrl?: string, http?: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> }) {
this.http = http ? http : window as any;
constructor(baseUrl?: string, http?: { fetch(input: string | URL | Request, init?: RequestInit): Promise<Response> }) {
this.http = http ? http : globalThis as any;
this.baseUrl = baseUrl ?? "";
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
// ReSharper disable InconsistentNaming

export class UrlEncodedRequestConsumingClient {
private http: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> };
private http: { fetch(input: string | URL | Request, init?: RequestInit): Promise<Response> };
private baseUrl: string;
protected jsonParseReviver: ((key: string, value: any) => any) | undefined = undefined;

constructor(baseUrl?: string, http?: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> }) {
this.http = http ? http : window as any;
constructor(baseUrl?: string, http?: { fetch(input: string | URL | Request, init?: RequestInit): Promise<Response> }) {
this.http = http ? http : globalThis as any;
this.baseUrl = baseUrl ?? "";
}

Expand Down
Loading
Loading