diff --git a/snippets/fetching-data/find-record/own-builder.ts b/snippets/fetching-data/find-record/own-builder.ts index deb26c5..529a883 100644 --- a/snippets/fetching-data/find-record/own-builder.ts +++ b/snippets/fetching-data/find-record/own-builder.ts @@ -1,10 +1,10 @@ // 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'; -import type { UrlOptions } from '@ember-data/request-utils'; type MyRequest = { url: string @@ -18,7 +18,7 @@ type MyRequest = { function findRecord(type: TypeFromInstance, id: string, options: FindRecordOptions): MyRequest { const identifier = { type, id }; - const urlOptions: Partial = { + const urlOptions: Partial = { op: 'findRecord', identifier, resourcePath: pluralize(identifier.type),