File tree 3 files changed +12
-2
lines changed
3 files changed +12
-2
lines changed Original file line number Diff line number Diff line change 1
1
import { AxiosInstance , getData } from '@contentstack/core' ;
2
2
import { Pagination } from './pagination' ;
3
3
import { FindResponse } from './types' ;
4
+ import { params } from './internal-types' ;
4
5
5
6
export class BaseQuery extends Pagination {
6
- _parameters : { [ key : string ] : any } = { } ; // Params of query class ?query={}
7
+ _parameters : params = { } ; // Params of query class ?query={}
8
+
7
9
protected _client ! : AxiosInstance ;
8
10
protected _urlPath ! : string ;
9
11
Original file line number Diff line number Diff line change
1
+ export type params = {
2
+ [ key : string ] : any
3
+ }
4
+
5
+ export type queryParams = {
6
+ [ key : string ] : string | boolean | number
7
+ }
Original file line number Diff line number Diff line change 1
1
import { PaginationObj } from './types' ;
2
+ import { queryParams } from './internal-types' ;
2
3
3
4
export class Pagination {
4
- _queryParams : { [ key : string ] : string | boolean | number } = { } ;
5
+ _queryParams : queryParams = { } ;
5
6
/**
6
7
* @method constructor
7
8
* @memberof Pagination
You can’t perform that action at this time.
0 commit comments