diff --git a/packages/clients/src/scw/__tests__/auth.ts b/packages/clients/src/scw/__tests__/auth.ts index 71b3a7236..3cf30d282 100644 --- a/packages/clients/src/scw/__tests__/auth.ts +++ b/packages/clients/src/scw/__tests__/auth.ts @@ -65,9 +65,11 @@ describe('authenticateWithSessionToken', () => { it('retrieves the token and updates the request header', async () => { const dummyToken = 'dummy' const sourceReq = new Request('https://api.scaleway.com/my/path') + /* eslint-disable deprecation/deprecation */ const updatedReq = await authenticateWithSessionToken( (): Promise => Promise.resolve(dummyToken), )({ request: sourceReq }) + /* eslint-enable deprecation/deprecation */ const expectedReq = sourceReq.clone() expectedReq.headers.append('x-session-token', 'dummy') expect(updatedReq).toStrictEqual(expectedReq) diff --git a/packages/clients/src/scw/custom-marshalling.ts b/packages/clients/src/scw/custom-marshalling.ts index 841e01d71..364047268 100644 --- a/packages/clients/src/scw/custom-marshalling.ts +++ b/packages/clients/src/scw/custom-marshalling.ts @@ -8,7 +8,11 @@ import type { TimeSeriesPoint, } from './custom-types' -/** Unmarshals {@link Money} */ +/** + * Unmarshals {@link Money} + * + * @internal + */ export const unmarshalMoney = (data: unknown) => { if (!isJSONObject(data)) { throw new TypeError( diff --git a/packages/clients/src/scw/fetch/resource-paginator.ts b/packages/clients/src/scw/fetch/resource-paginator.ts index b455f836e..6d26c9f94 100644 --- a/packages/clients/src/scw/fetch/resource-paginator.ts +++ b/packages/clients/src/scw/fetch/resource-paginator.ts @@ -104,6 +104,8 @@ export const fetchAll = async < * @param fetcher - The method to retrieve paginated resources * @param request - A request with pagination options * @returns A resource Promise with the pagination helpers + * + * @internal */ export const enrichForPagination = < K extends string,