diff --git a/custom.d.ts b/custom.d.ts new file mode 100644 index 0000000000..091d25e210 --- /dev/null +++ b/custom.d.ts @@ -0,0 +1,4 @@ +declare module '*.svg' { + const content: any; + export default content; +} diff --git a/ui/icons.ts b/ui/icons.ts index 1b4d1e00ac..8824c49480 100644 --- a/ui/icons.ts +++ b/ui/icons.ts @@ -1,60 +1,31 @@ -// @ts-expect-error import alignLeftIcon from '../assets/icons/align-left.svg'; -// @ts-expect-error import alignCenterIcon from '../assets/icons/align-center.svg'; -// @ts-expect-error import alignRightIcon from '../assets/icons/align-right.svg'; -// @ts-expect-error import alignJustifyIcon from '../assets/icons/align-justify.svg'; -// @ts-expect-error import backgroundIcon from '../assets/icons/background.svg'; -// @ts-expect-error import blockquoteIcon from '../assets/icons/blockquote.svg'; -// @ts-expect-error import boldIcon from '../assets/icons/bold.svg'; -// @ts-expect-error import cleanIcon from '../assets/icons/clean.svg'; -// @ts-expect-error import codeIcon from '../assets/icons/code.svg'; -// @ts-expect-error import colorIcon from '../assets/icons/color.svg'; -// @ts-expect-error import directionLeftToRightIcon from '../assets/icons/direction-ltr.svg'; -// @ts-expect-error import directionRightToLeftIcon from '../assets/icons/direction-rtl.svg'; -// @ts-expect-error import formulaIcon from '../assets/icons/formula.svg'; -// @ts-expect-error import headerIcon from '../assets/icons/header.svg'; -// @ts-expect-error import header2Icon from '../assets/icons/header-2.svg'; -// @ts-expect-error import italicIcon from '../assets/icons/italic.svg'; -// @ts-expect-error import imageIcon from '../assets/icons/image.svg'; -// @ts-expect-error import indentIcon from '../assets/icons/indent.svg'; -// @ts-expect-error import outdentIcon from '../assets/icons/outdent.svg'; -// @ts-expect-error import linkIcon from '../assets/icons/link.svg'; -// @ts-expect-error import listBulletIcon from '../assets/icons/list-bullet.svg'; -// @ts-expect-error import listCheckIcon from '../assets/icons/list-check.svg'; -// @ts-expect-error import listOrderedIcon from '../assets/icons/list-ordered.svg'; -// @ts-expect-error import subscriptIcon from '../assets/icons/subscript.svg'; -// @ts-expect-error import superscriptIcon from '../assets/icons/superscript.svg'; -// @ts-expect-error import strikeIcon from '../assets/icons/strike.svg'; -// @ts-expect-error import tableIcon from '../assets/icons/table.svg'; -// @ts-expect-error import underlineIcon from '../assets/icons/underline.svg'; -// @ts-expect-error import videoIcon from '../assets/icons/video.svg'; export default { diff --git a/ui/picker.ts b/ui/picker.ts index ab240415d7..11060929c1 100644 --- a/ui/picker.ts +++ b/ui/picker.ts @@ -1,4 +1,3 @@ -// @ts-expect-error import DropdownIcon from '../assets/icons/dropdown.svg'; let optionsCounter = 0;