diff --git a/js/src/common/helpers/icon.js b/js/src/common/helpers/icon.js
deleted file mode 100644
index c69a5d6c42..0000000000
--- a/js/src/common/helpers/icon.js
+++ /dev/null
@@ -1,12 +0,0 @@
-/**
- * The `icon` helper displays an icon.
- *
- * @param {String} fontClass The full icon class, prefix and the icon’s name.
- * @param {Object} attrs Any other attributes to apply.
- * @return {Object}
- */
-export default function icon(fontClass, attrs = {}) {
- attrs.className = 'icon ' + fontClass + ' ' + (attrs.className || '');
-
- return ;
-}
diff --git a/js/src/common/helpers/icon.tsx b/js/src/common/helpers/icon.tsx
new file mode 100644
index 0000000000..cb01a13474
--- /dev/null
+++ b/js/src/common/helpers/icon.tsx
@@ -0,0 +1,13 @@
+import * as Mithril from 'mithril';
+
+/**
+ * The `icon` helper displays an icon.
+ *
+ * @param fontClass The full icon class, prefix and the icon’s name.
+ * @param attrs Any other attributes to apply.
+ */
+export default function icon(fontClass: string, attrs: Mithril.Attributes = {}): Mithril.Vnode {
+ attrs.className = 'icon ' + fontClass + ' ' + (attrs.className || '');
+
+ return ;
+}