Skip to content

Commit 09c2014

Browse files
authored
Update DefaultPortModel.ts
when making custom port with custom styled link, I need to make a custom port model, which need a custom type in constructor, but options.type is missing in the DefaultPortModel constructor props type. So I added it in.
1 parent dd68d1f commit 09c2014

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/react-diagrams-defaults/src/port/DefaultPortModel.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ import { AbstractModelFactory, DeserializeEvent } from '@projectstorm/react-canv
1111
export interface DefaultPortModelOptions extends PortModelOptions {
1212
label?: string;
1313
in?: boolean;
14+
type?: string;
1415
}
1516

1617
export interface DefaultPortModelGenerics extends PortModelGenerics {

0 commit comments

Comments
 (0)