File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -314,10 +314,10 @@ export class Resource<Record extends object = any> implements ResourceInterface<
314314 static coerceId ( id : string ) : number | string {
315315 return id ;
316316 }
317- static parseQuery ( search , query ) {
317+ static parseQuery ( search : string , query : RequestTarget ) : RequestTarget | Query | URLSearchParams | undefined {
318318 return parseQuery ( search , query ) ;
319319 }
320- static parsePath ( path , context , query ) {
320+ static parsePath ( path : string , context : Context , query : URLSearchParams ) {
321321 const dotIndex = path . indexOf ( '.' ) ;
322322 if ( dotIndex > - 1 ) {
323323 // handle paths of the form /path/id.property
Original file line number Diff line number Diff line change @@ -90,8 +90,8 @@ export interface ResourceStaticInterface<Record extends object = any> {
9090 context ?: Context
9191 ) : Promise < Record > | Record | void | Promise < void > ;
9292
93- parseQuery ( search : any , query : any ) : any ;
94- parsePath ( path : any , context : Context , query : any ) : any ;
93+ parseQuery ( search : string , query : RequestTarget ) : RequestTarget | Query | URLSearchParams | undefined ;
94+ parsePath ( path : string , context : Context , query : URLSearchParams ) : string | { property : string ; id : string } ;
9595 isCollection : boolean ;
9696
9797 getResource (
You can’t perform that action at this time.
0 commit comments