Open temecom opened 6 months ago
Hello @temecom , I believe the best solution for you would be to disable type checks on libraries via skipLibCheck
, since this is third-party code your app has no control over
We sure want to improve our types but it's not a high priority for us right now.
Thank you for the quick response. So far that was the only type check that failed so I can live with a local fix without having to remove type checking globally which has significant down sides. If you can slip it into a release it would be much appreciated. Thanks ChrisSent from my T-Mobile 4G LTE Device -------- Original message --------From: Vinícius Goulart @.> Date: 5/7/24 12:04 PM (GMT-05:00) To: bpmn-io/form-js @.> Cc: "Christopher C. Smith" @.>, Mention @.> Subject: Re: [bpmn-io/form-js] Strict type check error is thrown when compiling with typeScript/Angular (Issue #1176) Hello @temecom , I believe the best solution for you would be to disable type checks on libraries via skipLibCheck, since this is third-party code your app has no control over We sure want to improve our types but it's not a high priority for us right now.
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: @.***>
Agree with the down sides...and mention that this was already signaled here : [https://github.com/bpmn-io/form-js/issues/1153]
Describe the Bug
When importing the form-js library a type error:
Member 'container' implicitly has an 'any' type.ts(7008)
is reported in file node_modules/@bpmn-io/form-js-viewer/dist/types/render/Renderer.d.ts preventing the typescript compilation to continue.
Steps to Reproduce
Create an Angular project
Install form-js-viewer types
Generate a component
Update the test-form.component.ts file:
export const routes: Routes = [ {path: 'form/test', component: TestFormComponent}
];
ng serve
localhost:4200/form/test
export type Config = { container:HTMLElement; };