Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Declare module '*.svg' #3656

Merged
merged 1 commit into from
Nov 14, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions custom.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
declare module '*.svg' {
const content: any;
export default content;
}
29 changes: 0 additions & 29 deletions ui/icons.ts
Original file line number Diff line number Diff line change
@@ -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 {
Expand Down
1 change: 0 additions & 1 deletion ui/picker.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// @ts-expect-error
import DropdownIcon from '../assets/icons/dropdown.svg';

let optionsCounter = 0;
Expand Down