summaryrefslogtreecommitdiff
path: root/src/text/html.ts
diff options
context:
space:
mode:
authorsyuilo <Syuilotan@yahoo.co.jp>2018-06-18 08:42:17 +0900
committerGitHub <noreply@github.com>2018-06-18 08:42:17 +0900
commita766faeae9f5d5ea9be6f758ec446dbcd240a86e (patch)
treee2ed5f30e2776259ef961c9f9a82412e7f9f66cd /src/text/html.ts
parentMerge pull request #1735 from rinsuki/fix/minor-fix-201806171721 (diff)
parent[noImplicitAny: true] src/services/drive (diff)
downloadsharkey-a766faeae9f5d5ea9be6f758ec446dbcd240a86e.tar.gz
sharkey-a766faeae9f5d5ea9be6f758ec446dbcd240a86e.tar.bz2
sharkey-a766faeae9f5d5ea9be6f758ec446dbcd240a86e.zip
Merge pull request #1738 from rinsuki/features/ts-noimplicitany-true
[WIP] noImplicitAny: true
Diffstat (limited to 'src/text/html.ts')
-rw-r--r--src/text/html.ts5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/text/html.ts b/src/text/html.ts
index b55d9b80a7..41adb2e7f7 100644
--- a/src/text/html.ts
+++ b/src/text/html.ts
@@ -1,7 +1,8 @@
-import { lib as emojilib } from 'emojilib';
+const { lib: emojilib } = require('emojilib');
import { JSDOM } from 'jsdom';
import config from '../config';
import { INote } from '../models/note';
+import { TextElement } from './parse';
const handlers: {[key: string]: (window: any, token: any, mentionedRemoteUsers: INote["mentionedRemoteUsers"]) => void} = {
bold({ document }, { bold }) {
@@ -90,7 +91,7 @@ const handlers: {[key: string]: (window: any, token: any, mentionedRemoteUsers:
}
};
-export default (tokens, mentionedRemoteUsers: INote['mentionedRemoteUsers'] = []) => {
+export default (tokens: TextElement[], mentionedRemoteUsers: INote['mentionedRemoteUsers'] = []) => {
const { window } = new JSDOM('');
for (const token of tokens) {