pl-api: add server directory client
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
This commit is contained in:
@ -42,7 +42,7 @@ interface RequestBody<Params = Record<string, any>> {
|
||||
|
||||
type RequestMeta = Pick<RequestBody, 'idempotencyKey' | 'onUploadProgress' | 'signal'>;
|
||||
|
||||
function request<T = any>(this: PlApiClient, input: URL | RequestInfo, {
|
||||
function request<T = any>(this: Pick<PlApiClient, 'accessToken' | 'baseURL'>, input: URL | RequestInfo, {
|
||||
body,
|
||||
method = body ? 'POST' : 'GET',
|
||||
params,
|
||||
|
||||
Reference in New Issue
Block a user