Skip to content

Commit

Permalink
refactor: Rename getItem method to getItemData in CollectionReference
Browse files Browse the repository at this point in the history
BREAKING CHANGE: `getItem` renamed to `getItemData` in CollectionReference
  • Loading branch information
alimd committed Sep 1, 2024
1 parent 7555803 commit e592ae5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/reference/src/collection-reference.ts
Original file line number Diff line number Diff line change
Expand Up @@ -324,11 +324,11 @@ export class CollectionReference<TItem extends JsonifiableObject = JsonifiableOb
*
* @example
* ```typescript
* const itemData = collectionRef.getItem('item1');
* const itemData = collectionRef.getItemData('item1');
* ```
*/
getItem(itemId: string | number): TItem {
this.logger__.logMethodArgs?.('getItem', itemId);
getItemData(itemId: string | number): TItem {
this.logger__.logMethodArgs?.('getItemData', itemId);
return this.item__(itemId).data;
}

Expand Down

0 comments on commit e592ae5

Please sign in to comment.