From 0c97c99f5cc460d0a6d189e60d112108f55ef73a Mon Sep 17 00:00:00 2001 From: blam Date: Tue, 3 Sep 2024 10:56:46 +0200 Subject: [PATCH] chore: make beautiful :nail_care: Signed-off-by: blam --- .../software-catalog/external-integrations.md | 26 +++++++++++-------- 1 file changed, 15 insertions(+), 11 deletions(-) diff --git a/docs/features/software-catalog/external-integrations.md b/docs/features/software-catalog/external-integrations.md index 50fccd7f59..4d5b283c4e 100644 --- a/docs/features/software-catalog/external-integrations.md +++ b/docs/features/software-catalog/external-integrations.md @@ -1157,7 +1157,9 @@ export class MyIncrementalEntityProvider The last step is to implement the actual `next` method that will accept the cursor, call the API, process the result and return the result. ```ts -export class MyIncrementalEntityProvider implements IncrementalEntityProvider { +export class MyIncrementalEntityProvider + implements IncrementalEntityProvider +{ private readonly token: string; constructor(token: string) { @@ -1168,14 +1170,16 @@ export class MyIncrementalEntityProvider implements IncrementalEntityProvider Promise): Promise { - const apiClient = new MyApiClient(this.token) + const apiClient = new MyApiClient(this.token); - await burst({ apiClient }) + await burst({ apiClient }); } - async next(context: Context, cursor?: Cursor = { page: 1 }): Promise> { + async next( + context: Context, + cursor?: Cursor = { page: 1 }, + ): Promise> { const { apiClient } = context; // call your API with the current cursor @@ -1198,26 +1202,26 @@ export class MyIncrementalEntityProvider implements IncrementalEntityProvider