@hostlink/light 2.3.3 → 2.3.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -8,7 +8,7 @@ import { default as _fs } from './fs';
8
8
  import { default as models } from './models';
9
9
  import { default as model } from './model';
10
10
  import { default as roles } from './roles';
11
- import { default as Collection } from './Collection';
11
+ import { default as createCollection } from './createCollection';
12
12
  export interface LightClient {
13
13
  baseURL: string;
14
14
  axios: AxiosInstance;
@@ -24,7 +24,7 @@ export interface LightClient {
24
24
  models: ReturnType<typeof models>;
25
25
  model(name: string): ReturnType<typeof model>;
26
26
  roles: ReturnType<typeof roles>;
27
- collect(name: string, fields: Object): Collection<any>;
27
+ collect(name: string, fields: Object): ReturnType<typeof createCollection>;
28
28
  }
29
29
  declare const _default: (baseURL: string) => LightClient;
30
30
  export default _default;
@@ -1,6 +1,6 @@
1
1
  import { AxiosInstance } from 'axios';
2
2
  interface Collection<Item> {
3
- constructor(data_path: string, fields: Object, axios: AxiosInstance): void;
3
+ constructor(fields: Object, axios: AxiosInstance): void;
4
4
  [key: string]: any;
5
5
  /**
6
6
  * The all method returns the underlying array represented by the collection.
@@ -419,6 +419,7 @@ declare class Collection<Item> {
419
419
  _sort: string | null;
420
420
  _sortDesc: boolean;
421
421
  meta: any;
422
- constructor(data_path: string, fields: Object, axios: AxiosInstance);
422
+ constructor(fields: Object, axios: AxiosInstance);
423
423
  }
424
- export default Collection;
424
+ declare const _default: (name: string, axios: AxiosInstance, fields: Object) => Collection<any>;
425
+ export default _default;