Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Commit 5fbeb20

Browse files
authored
Some small tidying up (#9149)
* Remove stale comment * Fix typing * Install katex type definitions
1 parent eb2e61e commit 5fbeb20

File tree

4 files changed

+9
-3
lines changed

4 files changed

+9
-3
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,7 @@
150150
"@types/flux": "^3.1.9",
151151
"@types/fs-extra": "^9.0.13",
152152
"@types/jest": "^26.0.20",
153+
"@types/katex": "^0.14.0",
153154
"@types/lodash": "^4.14.168",
154155
"@types/modernizr": "^3.5.3",
155156
"@types/node": "^14.14.22",

src/components/structures/MatrixChat.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ interface IScreen {
157157
params?: QueryDict;
158158
}
159159

160-
interface IProps { // TODO type things better
160+
interface IProps {
161161
config: IConfigOptions;
162162
serverConfig?: ValidatedServerConfig;
163163
onNewScreen: (screen: string, replaceLast: boolean) => void;

src/linkify-matrix.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,8 +130,8 @@ function onAliasClick(event: MouseEvent, roomAlias: string) {
130130
});
131131
}
132132

133-
const escapeRegExp = function(string): string {
134-
return string.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
133+
const escapeRegExp = function(s: string): string {
134+
return s.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
135135
};
136136

137137
// Recognise URLs from both our local and official Element deployments.

yarn.lock

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2094,6 +2094,11 @@
20942094
resolved "https://registry.yarnpkg.com/@types/json5/-/json5-0.0.29.tgz#ee28707ae94e11d2b827bcbe5270bcea7f3e71ee"
20952095
integrity sha512-dRLjCWHYg4oaA77cxO64oO+7JwCwnIzkZPdrrC71jQmQtlhM556pwKo5bUzqvZndkVbeFLIIi+9TC40JNF5hNQ==
20962096

2097+
"@types/katex@^0.14.0":
2098+
version "0.14.0"
2099+
resolved "https://registry.yarnpkg.com/@types/katex/-/katex-0.14.0.tgz#b84c0afc3218069a5ad64fe2a95321881021b5fe"
2100+
integrity sha512-+2FW2CcT0K3P+JMR8YG846bmDwplKUTsWgT2ENwdQ1UdVfRk3GQrh6Mi4sTopy30gI8Uau5CEqHTDZ6YvWIUPA==
2101+
20972102
"@types/lodash@^4.14.168":
20982103
version "4.14.182"
20992104
resolved "https://registry.yarnpkg.com/@types/lodash/-/lodash-4.14.182.tgz#05301a4d5e62963227eaafe0ce04dd77c54ea5c2"

0 commit comments

Comments
 (0)