flamerest 1.0.21 → 1.0.22

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.
Files changed (2) hide show
  1. package/REST.d.ts +3 -3
  2. package/package.json +1 -1
package/REST.d.ts CHANGED
@@ -21,7 +21,7 @@ export function request(url: string, params: object | string, type: string = 'GE
21
21
  * @param titles Это чтобы мы могли контроллить какие названия полей мы будет загружать при экспорте, чтобы они были как в таблице
22
22
  * @return Promise<object>
23
23
  */
24
- export function get(table: string, where: object | string | null, expand: object | string | null, fields: object | Array | string | null, sortfields: object | Array | string | null, page: number, perPage: number, RemoveDuplicates, format, titles): object
24
+ export function get(table: string, where: object | string | null, expand: object | string | null, fields: object | Array<string> | string | null, sortfields: object | Array<string> | string | null, page: number, perPage: number, RemoveDuplicates, format, titles): object
25
25
 
26
26
  /**
27
27
  * Получить все записи по запросу [постранично]
@@ -29,7 +29,7 @@ export function get(table: string, where: object | string | null, expand: object
29
29
  * @param {object} params
30
30
  * @returns
31
31
  */
32
- export function all(table: string, params: {where: object, fields: object|Array, sort: Array, page: number, perPage: number}): object;
32
+ export function all(table: string, params: {where: object, fields: object|Array<string>, sort: Array<string>, page: number, perPage: number}): object;
33
33
 
34
34
  /**
35
35
  * Получить одну запись по её ID
@@ -38,7 +38,7 @@ export function all(table: string, params: {where: object, fields: object|Array,
38
38
  * @param fields
39
39
  * @param primaryKeyName
40
40
  */
41
- export function one(table: string, id: number|string, fields: object|Array, primaryKeyName: string): object;
41
+ export function one(table: string, id: number|string, fields: object|Array<string>, primaryKeyName: string): object;
42
42
 
43
43
  /**
44
44
  * Создать новую запись
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "flamerest",
3
- "version": "1.0.21",
3
+ "version": "1.0.22",
4
4
  "description": "",
5
5
  "main": "REST.js",
6
6
  "typings": "./REST.d.ts",