Closed FranklinWhale closed 4 years ago
Describe the bug The typing change from toolbar?: boolean | ReadonlyArray<string | ToolbarIcon>; to toolbar?: boolean | ReadonlyArray<'|' | ToolbarButton | ToolbarIcon | ToolbarDropdownIcon>; in 2.10.0 breaks existing code that uses string array.
toolbar?: boolean | ReadonlyArray<string | ToolbarIcon>;
toolbar?: boolean | ReadonlyArray<'|' | ToolbarButton | ToolbarIcon | ToolbarDropdownIcon>;
For example,
new EasyMDE({ toolbar: [ "bold", "italic", "heading", "|", "quote", "unordered-list", "ordered-list", "table", "|", "link" ] });
Expected behavior The code should be compiled successfully.
Version information
Fixed in version 2.10.1
Describe the bug The typing change from
toolbar?: boolean | ReadonlyArray<string | ToolbarIcon>;
totoolbar?: boolean | ReadonlyArray<'|' | ToolbarButton | ToolbarIcon | ToolbarDropdownIcon>;
in 2.10.0 breaks existing code that uses string array.For example,
Expected behavior The code should be compiled successfully.
Version information