cornerstone3D icon indicating copy to clipboard operation
cornerstone3D copied to clipboard

[Bug] createVOISynchronizer signature is incorrect

Open jeremygau opened this issue 1 year ago • 0 comments

Describe the Bug

Hello, The signature of the createVOISynchronizer function is incorrect. The options should be optional because they are assingned in the body of the function but currently they are required so Typescript throw an error when we don't provide them.

Steps to Reproduce

Use the createVOISynchronizer function with typescript

The current behavior

createVOISynchronizer(
  synchronizerName: string,
  options: VOISynchronizerOptions
)

The expected behavior

createVOISynchronizer(
  synchronizerName: string,
  options?: VOISynchronizerOptions
)

OS

macOs

Node version

21.7.3

Browser

All

jeremygau avatar Aug 20 '24 15:08 jeremygau