Merge pull request #1668 from jerch/fix_demo
add explicit type to demo/client.ts
This commit is contained in:
+2
-2
@@ -101,7 +101,7 @@ function createTerminal(): void {
|
|||||||
if (e.key === 'Enter') {
|
if (e.key === 'Enter') {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
let searchOptions = {
|
let searchOptions = {
|
||||||
regex: document.getElementById('regex').checked,
|
regex: (document.getElementById('regex') as HTMLInputElement).checked,
|
||||||
wholeWord: false,
|
wholeWord: false,
|
||||||
caseSensitive: false
|
caseSensitive: false
|
||||||
};
|
};
|
||||||
@@ -112,7 +112,7 @@ function createTerminal(): void {
|
|||||||
if (e.key === 'Enter') {
|
if (e.key === 'Enter') {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
let searchOptions = {
|
let searchOptions = {
|
||||||
regex: document.getElementById('regex').checked,
|
regex: (document.getElementById('regex') as HTMLInputElement).checked,
|
||||||
wholeWord: false,
|
wholeWord: false,
|
||||||
caseSensitive: false
|
caseSensitive: false
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user