dataset-types 3.0.7 → 3.0.10

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/index.d.ts +8 -2
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -20,6 +20,8 @@ export interface IName {
20
20
  export interface IDataRow {
21
21
  id: string;
22
22
  }
23
+ export interface INamedDataRow extends IDataRow, IName {
24
+ }
23
25
  export interface IEntity extends IDataRow {
24
26
  type: string;
25
27
  delete?: string;
@@ -167,9 +169,13 @@ export type IProject = IDataLockable & IDataArchivable & {
167
169
  createdAt: Date;
168
170
  Categories?: ICategory[];
169
171
  };
170
- export interface ICategory extends IEntity {
172
+ export interface ICategory extends INamedEntity {
171
173
  colour: number;
172
- Projects?: IProject[];
174
+ }
175
+ export interface IAction {
176
+ name: (item: any) => string;
177
+ icon: (item: any) => string;
178
+ action: (item: any) => void;
173
179
  }
174
180
  export interface IActionContext {
175
181
  callback: () => void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dataset-types",
3
- "version": "3.0.7",
3
+ "version": "3.0.10",
4
4
  "scripts": {
5
5
  "start": "npm run build && npm run package",
6
6
  "build": "tsc --rootDir 'src/types' --outDir './dist'",