From 1dcfa3af97f35da071629b28ea7554e5ad27805a Mon Sep 17 00:00:00 2001 From: AmauryD Date: Wed, 22 Nov 2023 17:34:58 +0100 Subject: [PATCH] fix peekOrFail return type --- ember-utils/src/services/extended-store.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ember-utils/src/services/extended-store.ts b/ember-utils/src/services/extended-store.ts index 35a7ba0..791c8f9 100644 --- a/ember-utils/src/services/extended-store.ts +++ b/ember-utils/src/services/extended-store.ts @@ -26,7 +26,10 @@ export default class ExtendedStoreService extends Service { return record; } - public peekOrFail(recordType: K, id: string) { + public peekOrFail( + recordType: K, + id: string, + ): ModelRegistry[K] { const record = this.store.peekRecord(recordType, id); if (!record) { throw new Error(