prefer-enums-to-boolean-returns

  • If returning boolean, only two options returned

    • if using type, then three (incl null)

  • But if there are more types -> then will need to change signature (breaking change)

  • More descriptive when call the method

Last updated