Skip to content

Commit 60afe00

Browse files
committed
ts/api - add with opts
1 parent 931181b commit 60afe00

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/api.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ export class Client {
180180
return req(url.toString(), { method: 'DELETE', headers });
181181
}
182182

183-
// with(opts = {}) {
184-
// return new ApiClient({ ...(this._opts || {}), ...opts });
185-
// }
183+
with(opts: ClientOpts = {}) {
184+
return new Client({ ...(this._opts || {}), ...opts });
185+
}
186186
}

0 commit comments

Comments
 (0)