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.
- package/index.d.ts +8 -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
|
|
172
|
+
export interface ICategory extends INamedEntity {
|
|
171
173
|
colour: number;
|
|
172
|
-
|
|
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;
|