You can simulate that the toolbar is an array of Array and .
interface ArrayAndString extends Array, String { } var toolbar: ArrayAndString = editor.config.toolbar;
This suggests that array and string operations are legal, which is actually not the case, and does not provide much better security than any . There is no way to simulate the fact that it can be this or that, but not both.
Jeffery grajkowski
source share