We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e860516 commit 6e9a50bCopy full SHA for 6e9a50b
1 file changed
src/index.ts
@@ -366,7 +366,16 @@ export class DrupalJsonApiParams implements DrupalJsonApiParamsInterface {
366
return key;
367
}
368
369
- private generateKeyName(obj: any, proposedKey: string, enforceKeyName: boolean = false): string {
+ /**
370
+ * Generate a unique key name for the given object.
371
+ *
372
+ * @param obj The object to generate a key name for.
373
+ * @param proposedKey The proposed key name.
374
+ * @param enforceKeyName Whether to enforce the key name.
375
376
+ * @returns The generated key name.
377
+ */
378
+ protected generateKeyName(obj: any, proposedKey: string, enforceKeyName: boolean = false): string {
379
const length = Object.keys(obj).length;
380
if (enforceKeyName) {
381
for (let ndx = 1; ndx <= length; ndx++) {
0 commit comments