Solved type issues in traverseOperations etc. Changed functions to take a object single parameter. Condensed endpoints into a function call
This commit is contained in:
5
shared-operations/declarations/Action.d.ts
vendored
Normal file
5
shared-operations/declarations/Action.d.ts
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
export interface Action {
|
||||
values: any;
|
||||
type: string;
|
||||
actions?: Action[];
|
||||
}
|
||||
@@ -1,5 +0,0 @@
|
||||
export interface Operation {
|
||||
values: {id:any};
|
||||
type: string;
|
||||
operations?: Operation[];
|
||||
}
|
||||
5
shared-operations/declarations/TypeScriptUtils.d.ts
vendored
Normal file
5
shared-operations/declarations/TypeScriptUtils.d.ts
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
|
||||
export type ValuesType<T> = T[keyof T];
|
||||
|
||||
// https://dev.to/vborodulin/ts-how-to-override-properties-with-type-intersection-554l
|
||||
export type Override<T1, T2> = Omit<T1, keyof T2> & T2;
|
||||
Reference in New Issue
Block a user