File tree Expand file tree Collapse file tree 1 file changed +45
-0
lines changed Expand file tree Collapse file tree 1 file changed +45
-0
lines changed Original file line number Diff line number Diff line change 1+ declare module JSDataHttp {
2+
3+ interface IDict {
4+ [ key : string ] : any ;
5+ }
6+
7+ interface IActionOpts {
8+ adapter ?: string ,
9+ pathname ?: string ,
10+ request ?: Function ,
11+ response ?: Function ,
12+ responseError ?: Function
13+ }
14+
15+ interface IBaseHttpAdapter {
16+ basePath ?: string ,
17+ suffix ?: string ,
18+ debug ?: boolean ,
19+ forceTrailingSlash ?: boolean ,
20+ useFetch ?: boolean
21+ http ?: any ,
22+ httpConfig ?: IDict
23+ }
24+
25+ export class HttpAdapter implements IBaseHttpAdapter {
26+
27+ static version : {
28+ full ?: string ,
29+ minor ?: string ,
30+ major ?: string ,
31+ patch ?: string ,
32+ alpha ?: string | boolean ,
33+ beta ?: string | boolean
34+ }
35+ static addAction ( name : string , opts : IActionOpts ) : Function
36+ static addActions ( opts ?: { [ key :string ] : IActionOpts } ) : Function
37+ static extend ( instanceProps ?: IDict , classProps ?: IDict ) : HttpAdapter
38+
39+ constructor ( opts : IBaseHttpAdapter )
40+ }
41+ }
42+
43+ declare module 'js-data-http' {
44+ export = JSDataHttp . HttpAdapter
45+ }
You can’t perform that action at this time.
0 commit comments