ckeditor5
ckeditor5 copied to clipboard
[TS] Merge the "number" type into PriorityString
Followup of: https://github.com/ckeditor/ckeditor5/issues/11708 Part of: https://github.com/ckeditor/ckeditor5/issues/12027
Right now we define a type of e.g. on()'s options.priority param as PriorityString | number.
For me, the number is part of PriorityString. Everywhere where we expect the priority, we also allow a number version of it.
So, the proposal is to:
- Move
numbertoPriorityStringto simplify its use. - Keep the current name of this union to avoid increasing visibility of the fact that a number can be used (which should be done only in special cases).