File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
snippets/fetching-data/find-record Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change 11// Bring your own builder
22import { buildBaseURL , buildQueryParams } from '@ember-data/request-utils'
33import { pluralize } from 'ember-inflector' ;
4+ import type { FindRecordUrlOptions } from '@ember-data/request-utils' ;
45import type { RequestSignature } from '@warp-drive/core-types/symbols' ;
56import type { TypeFromInstance } from '@warp-drive/core-types/record' ;
67import type { FindRecordOptions } from '@warp-drive/core-types/request' ;
@@ -17,7 +18,7 @@ type MyRequest<Type> = {
1718function findRecord < Type > ( type : TypeFromInstance < Type > , id : string , options : FindRecordOptions < Type > ) : MyRequest < Type > {
1819 const identifier = { type, id } ;
1920
20- const urlOptions = {
21+ const urlOptions : Partial < FindRecordUrlOptions > = {
2122 op : 'findRecord' ,
2223 identifier,
2324 resourcePath : pluralize ( identifier . type ) ,
You can’t perform that action at this time.
0 commit comments