admin_lsac 2.0.19 → 2.0.20

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.
package/README.md CHANGED
@@ -61,7 +61,7 @@ You will need to create an array of schemas for your own admin panel.
61
61
  ```
62
62
  export interface TableField {
63
63
  name: string;
64
- access: (obj: any) => string | number | React.ReactElement;
64
+ access: (obj: any) => Promise<any>;
65
65
  }
66
66
 
67
67
  export interface SimpleField {
package/admin_lsac.d.ts CHANGED
@@ -1,8 +1,7 @@
1
1
  declare module 'admin_lsac' {
2
- import * as React from 'react';
3
2
  export interface TableField {
4
3
  name: string;
5
- access: (obj: any) => string | number | React.ReactElement;
4
+ access: (obj: any) => Promise<any>;
6
5
  }
7
6
  export interface SimpleField {
8
7
  name: string;
@@ -1,8 +1,7 @@
1
1
  declare module 'admin_lsac' {
2
- import * as React from 'react';
3
2
  export interface TableField {
4
3
  name: string;
5
- access: (obj: any) => string | number | React.ReactElement;
4
+ access: (obj: any) => Promise<any>;
6
5
  }
7
6
  export interface SimpleField {
8
7
  name: string;
@@ -1,7 +1,6 @@
1
- import * as React from 'react';
2
1
  export interface TableField {
3
2
  name: string;
4
- access: (obj: any) => string | number | React.ReactElement;
3
+ access: (obj: any) => Promise<any>;
5
4
  }
6
5
  export interface SimpleField {
7
6
  name: string;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "admin_lsac",
3
3
  "private": false,
4
- "version": "2.0.19",
4
+ "version": "2.0.20",
5
5
  "description": "Generic Admin Panel created for storing events' data",
6
6
  "scripts": {
7
7
  "dev": "vite",