Skip to content

Commit

Permalink
chore: change private function definition to avoid creating docs
Browse files Browse the repository at this point in the history
  • Loading branch information
hemant-fundwave committed Nov 14, 2024
1 parent 4e9fb49 commit b524b15
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ export class FetchQueue {
* @param parameters - An object containing the parameters to be included in the key.
* @returns A string representing the unique key for the fetch request.
*/
#keyBuilder(parameters: Record<string, any>): string {
#keyBuilder = (parameters: Record<string, any>) => {
const requestKey: Record<string, any> = {};

this.#keyBuilderParams.forEach((key) => {
Expand All @@ -185,7 +185,7 @@ export class FetchQueue {
});

return JSON.stringify(requestKey);
}
};

/**
* Returns the custom fetch function used by the FetchQueue class to handle queuing of fetch requests.
Expand Down

0 comments on commit b524b15

Please sign in to comment.