Skip to content

Commit

Permalink
Ensure tha DrawFeedbackEdgeAction uses correct type for schema
Browse files Browse the repository at this point in the history
Follow-up for  eclipse-glsp/glsp#926
  • Loading branch information
tortmayr committed Mar 9, 2023
1 parent a898271 commit 2e7cc7f
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export interface DrawFeedbackEdgeAction extends Action {
kind: typeof DrawFeedbackEdgeAction.KIND;
elementTypeId: string;
sourceId: string;
edgeSchema?: SEdgeSchema;
edgeSchema?: Partial<SEdgeSchema>;
}

export namespace DrawFeedbackEdgeAction {
Expand All @@ -51,7 +51,11 @@ export namespace DrawFeedbackEdgeAction {
return Action.hasKind(object, KIND);
}

export function create(options: { elementTypeId: string; sourceId: string; edgeSchema?: SEdgeSchema }): DrawFeedbackEdgeAction {
export function create(options: {
elementTypeId: string;
sourceId: string;
edgeSchema?: Partial<SEdgeSchema>;
}): DrawFeedbackEdgeAction {
return {
kind: KIND,
...options
Expand Down

0 comments on commit 2e7cc7f

Please sign in to comment.