Skip to content

Commit abbe48b

Browse files
author
dustin deus
committed
revert public methods
1 parent 07eb8ba commit abbe48b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/http-data-source.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ export abstract class HTTPDataSource<TContext = any> extends DataSource {
163163

164164
protected onError?(_error: Error, requestOptions: Request): void
165165

166-
public async get<TResult = unknown>(
166+
protected async get<TResult = unknown>(
167167
path: string,
168168
requestOptions?: RequestOptions,
169169
): Promise<Response<TResult>> {
@@ -176,7 +176,7 @@ export abstract class HTTPDataSource<TContext = any> extends DataSource {
176176
})
177177
}
178178

179-
public async post<TResult = unknown>(
179+
protected async post<TResult = unknown>(
180180
path: string,
181181
requestOptions?: RequestOptions,
182182
): Promise<Response<TResult>> {
@@ -189,7 +189,7 @@ export abstract class HTTPDataSource<TContext = any> extends DataSource {
189189
})
190190
}
191191

192-
public async delete<TResult = unknown>(
192+
protected async delete<TResult = unknown>(
193193
path: string,
194194
requestOptions?: RequestOptions,
195195
): Promise<Response<TResult>> {
@@ -202,7 +202,7 @@ export abstract class HTTPDataSource<TContext = any> extends DataSource {
202202
})
203203
}
204204

205-
public async put<TResult = unknown>(
205+
protected async put<TResult = unknown>(
206206
path: string,
207207
requestOptions?: RequestOptions,
208208
): Promise<Response<TResult>> {

0 commit comments

Comments
 (0)