diff --git a/snippets/fetching-data/find-record/own-builder.ts b/snippets/fetching-data/find-record/own-builder.ts index bae77f1..529a883 100644 --- a/snippets/fetching-data/find-record/own-builder.ts +++ b/snippets/fetching-data/find-record/own-builder.ts @@ -1,6 +1,7 @@ // Bring your own builder import { buildBaseURL, buildQueryParams } from '@ember-data/request-utils' import { pluralize } from 'ember-inflector'; +import type { FindRecordUrlOptions } from '@ember-data/request-utils'; import type { RequestSignature } from '@warp-drive/core-types/symbols'; import type { TypeFromInstance } from '@warp-drive/core-types/record'; import type { FindRecordOptions } from '@warp-drive/core-types/request'; @@ -17,7 +18,7 @@ type MyRequest = { function findRecord(type: TypeFromInstance, id: string, options: FindRecordOptions): MyRequest { const identifier = { type, id }; - const urlOptions = { + const urlOptions: Partial = { op: 'findRecord', identifier, resourcePath: pluralize(identifier.type),