Skip to content

Commit 2da2da6

Browse files
authored
Fix adapter generateIdForRecord signature (#294)
1 parent 7b06ca1 commit 2da2da6

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

addon/adapters/cloud-firestore-modular.ts

+2-3
Original file line numberDiff line numberDiff line change
@@ -82,10 +82,9 @@ export default class CloudFirestoreModularAdapter extends Adapter {
8282
return fastboot && fastboot.isFastBoot;
8383
}
8484

85-
// @ts-expect-error EmberData types incorrect
86-
public generateIdForRecord(_store: Store, type: string): string {
85+
public generateIdForRecord(_store: Store, type: unknown): string {
8786
const db = getFirestore();
88-
const collectionName = buildCollectionName(type);
87+
const collectionName = buildCollectionName(type as string); // TODO: EmberData types incorrect
8988

9089
return doc(collection(db, collectionName)).id;
9190
}

0 commit comments

Comments
 (0)