bpmn-visualization-js icon indicating copy to clipboard operation
bpmn-visualization-js copied to clipboard

[POC] Try the library NeverThrow

Open csouchet opened this issue 3 years ago • 3 comments
trafficstars

  • https://www.npmjs.com/package/neverthrow?activeTab=versions#resultmaperr-method
  • https://www.npmjs.com/package/eslint-plugin-neverthrow
  • https://www.codementor.io/@supermacro/type-safe-error-handling-in-typescript-1bp40rs502

This library use Either pattern:

  • https://medium.com/inato/expressive-error-handling-in-typescript-and-benefits-for-domain-driven-design-70726e061c86
  • https://antman-does-software.com/stop-catching-errors-in-typescript-use-the-either-type-to-make-your-code-predictable

covers #35, #54

csouchet avatar Dec 09 '21 16:12 csouchet

🎊 PR Preview e0a3a88745700b35176e7cb329b602de18fff1d0 has been successfully built and deployed to https://process-analytics-bpmn-visualization-js-demo_preview-pr-1673.surge.sh

:clock1: Build time: 61.697s

🤖 By surge-preview

github-actions[bot] avatar Dec 09 '21 16:12 github-actions[bot]

😭 Deploy PR Preview e0a3a88745700b35176e7cb329b602de18fff1d0 failed. Build logs

🤖 By surge-preview

github-actions[bot] avatar Dec 09 '21 16:12 github-actions[bot]

Closing this poc as there is not activity on this topic. Feel free to reopen or recreate a PR about this topic.

tbouffard avatar Aug 31 '22 13:08 tbouffard