• Robert Knight's avatar
    Typecheck UI components in src/annotator/components · f6042890
    Robert Knight authored
    This follows the same pattern that was introduced for `SvgIcon` in
    `propTypes` declarations are kept around for use at runtime by other
    code which is not yet typechecked.
    
    An issue that I encountered is that TS doesn't know about the custom
    HTML element types we use. For the moment I have ignored these with
    `@ts-ignore`, although I believe it should be possible to teach it.
    f6042890
toolbar.js 4.62 KB