Skip to content

Commit c47f6be

Browse files
committed
Removed async modifier from abstract method
This was a breaking change as of TS 4.x: microsoft/TypeScript#39963 More context: microsoft/TypeScript#25710 (comment)
1 parent 9bc773e commit c47f6be

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/sdk-rtl/src/baseTransport.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ export abstract class BaseTransport implements ITransport {
6161
* @param options overrides of default transport settings
6262
* @returns typed response of `TSuccess`, or `TError` result
6363
*/
64-
abstract async rawRequest(
64+
abstract rawRequest(
6565
method: HttpMethod,
6666
path: string,
6767
queryParams?: Values,
@@ -80,7 +80,7 @@ export abstract class BaseTransport implements ITransport {
8080
* @param {Partial<ITransportSettings>} options transport option overrides
8181
* @returns {Promise<TSuccess>} the streaming response
8282
*/
83-
abstract async request<TSuccess, TError>(
83+
abstract request<TSuccess, TError>(
8484
method: HttpMethod,
8585
path: string,
8686
queryParams?: any,
@@ -101,7 +101,7 @@ export abstract class BaseTransport implements ITransport {
101101
* @param {Partial<ITransportSettings>} options transport option overrides
102102
* @returns {Promise<TSuccess>} the streaming response
103103
*/
104-
abstract async stream<TSuccess>(
104+
abstract stream<TSuccess>(
105105
callback: (readable: Readable) => Promise<TSuccess>,
106106
method: HttpMethod,
107107
path: string,

0 commit comments

Comments
 (0)