We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The current BaseViewerOptions from BaseViewer.d.ts is the following:
export type BaseViewerOptions = { width?: number|string; height?: number|string; position?: string; container?: string|HTMLElement; moddleExtensions?: ModdleExtensions; additionalModules?: ModuleDeclaration[]; };
BaseModeler extends BaseViewer types. Currently, properties as
are not type conform. This produces type errors when using bpmn-js in typescript.
new BpmnModeler({ container: canvasId, additionalModules: [ BpmnPropertiesPanelModule, BpmnPropertiesProviderModule, lintModule, [...] ], linting: { bpmnlint: bpmnlintConfig, active: false, }, propertiesPanel: { parent: $bpmnJsPanel, }, keyboard: { bindTo: document }, });
Typing definitions should be complete and handle extensions correctly.
The text was updated successfully, but these errors were encountered:
Thanks for opening this issue. We clearly need to make our types more open for extension.
CC @philippfromme
Sorry, something went wrong.
Fixed via #1884.
Fixed with bpmn-js@12.1.0.
bpmn-js@12.1.0
nikku
Successfully merging a pull request may close this issue.
Describe the Bug
The current BaseViewerOptions from BaseViewer.d.ts is the following:
BaseModeler extends BaseViewer types. Currently, properties as
are not type conform. This produces type errors when using bpmn-js in typescript.
Steps to Reproduce
Expected Behavior
Typing definitions should be complete and handle extensions correctly.
Environment
The text was updated successfully, but these errors were encountered: