Skip to content

Commit

Permalink
refactor(data-loader): inline ActionProps into ActionPropertyForParam…
Browse files Browse the repository at this point in the history
…eter
  • Loading branch information
tasshi-me committed Apr 27, 2021
1 parent f9a14c2 commit 242fbc7
Showing 1 changed file with 8 additions and 10 deletions.
18 changes: 8 additions & 10 deletions packages/rest-api-client/src/client/types/app/action.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,22 +7,20 @@ export type AppActionsForParameter = {
[actionName: string]: ActionPropertyForParameter;
};

type ActionProps = {
name?: string;
index: string | number;
entities?: Entity[];
};

type ActionPropertyForParameter = (
type ActionPropertyForParameter =
| {
name?: string;
index: string | number;
destApp: DestAppForParameter;
mappings: Mapping[];
entities?: Entity[];
}
| {
name?: string;
index: string | number;
mappings?: Mapping[];
}
) &
ActionProps;
entities?: Entity[];
};

type DestAppForParameter =
| {
Expand Down

0 comments on commit 242fbc7

Please sign in to comment.