File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
snippets/fetching-data/find-record Expand file tree Collapse file tree 1 file changed +2
-2
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' ;
7- import type { UrlOptions } from '@ember-data/request-utils' ;
88
99type MyRequest < Type > = {
1010 url : string
@@ -18,7 +18,7 @@ type MyRequest<Type> = {
1818function findRecord < Type > ( type : TypeFromInstance < Type > , id : string , options : FindRecordOptions < Type > ) : MyRequest < Type > {
1919 const identifier = { type, id } ;
2020
21- const urlOptions : Partial < UrlOptions > = {
21+ const urlOptions : Partial < FindRecordUrlOptions > = {
2222 op : 'findRecord' ,
2323 identifier,
2424 resourcePath : pluralize ( identifier . type ) ,
You can’t perform that action at this time.
0 commit comments