sourcery icon indicating copy to clipboard operation
sourcery copied to clipboard

JavaScript class pattern

Open duzda opened this issue 5 months ago • 0 comments

Checklist

  • [x] This is a new feature, not a refactoring suggestion
  • [x] I have checked for this feature in the Sourcery documentation
  • [x] I have checked there are no open requests referencing the same feature

Description

The class syntax for pattern matching is not really suitable for JavaScript, as the current syntax requires : to be on the same line.

The pattern can't be used for JavaScript as their classes do not use :, but only class ${name}.

duzda avatar Jun 09 '25 14:06 duzda