File tree Expand file tree Collapse file tree 6 files changed +19
-7
lines changed Expand file tree Collapse file tree 6 files changed +19
-7
lines changed Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ function generatePattern(words: string): RegExp {
41
41
return pattern ;
42
42
}
43
43
44
- let clearSuccessIndicatorHandle : number ;
44
+ let clearSuccessIndicatorHandle : NodeJS . Timeout ;
45
45
function displayPattern ( pattern : RegExp ) : void {
46
46
$output . value = pattern . toString ( ) ;
47
47
$output . dispatchEvent ( new Event ( 'input' ) ) ;
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ describe('parseString', () => {
14
14
expect ( wordList ) . toEqual ( [ ] ) ;
15
15
}
16
16
17
- [ '' , null , undefined ] . forEach ( testInput ) ;
17
+ [ '' , null , undefined ] . forEach ( val => testInput ( val as string ) ) ;
18
18
} ) ;
19
19
20
20
it ( 'returns entire input string in array when delimiter is empty' , ( ) => {
@@ -23,7 +23,7 @@ describe('parseString', () => {
23
23
expect ( wordList ) . toEqual ( [ ' some input string ' ] ) ;
24
24
}
25
25
26
- [ '' , null , undefined ] . forEach ( testDelimiter ) ;
26
+ [ '' , null , undefined ] . forEach ( val => testDelimiter ( val as string ) ) ;
27
27
} ) ;
28
28
29
29
it ( 'returns entire input string in array when delimiter is not present in input string' , ( ) => {
Original file line number Diff line number Diff line change @@ -13,7 +13,10 @@ module.exports = {
13
13
{
14
14
loader : 'ts-loader' ,
15
15
options : {
16
- compilerOptions : { noEmit : false } ,
16
+ compilerOptions : {
17
+ checkJs : false , // workaround for TypeStrong/ts-loader#702
18
+ noEmit : false ,
19
+ } ,
17
20
configFile : resolve ( __dirname , './tsconfig.json' ) ,
18
21
} ,
19
22
} ,
Original file line number Diff line number Diff line change 43
43
"@types/escape-string-regexp" : " ^1.0.0" ,
44
44
"@types/jest" : " ^24.0.18" ,
45
45
"@types/jest-when" : " ^2.7.0" ,
46
+ "@types/node" : " ^12.7.5" ,
46
47
"@typescript-eslint/eslint-plugin" : " ^2.2.0" ,
47
48
"@typescript-eslint/parser" : " ^2.2.0" ,
48
49
"eslint" : " 6.1.0" ,
Original file line number Diff line number Diff line change 2
2
"compilerOptions" : {
3
3
"allowJs" : true ,
4
4
"baseUrl" : " ./" ,
5
+ "checkJs" : true ,
5
6
"downlevelIteration" : true ,
6
7
"esModuleInterop" : true ,
8
+ "forceConsistentCasingInFileNames" : true ,
7
9
"rootDir" : " ./" ,
8
10
"lib" : [
9
11
" es5" ,
13
15
" es2017.object"
14
16
],
15
17
"module" : " es2015" ,
18
+ "moduleResolution" : " node" ,
16
19
"noEmit" : true ,
17
- "noImplicitAny " : true ,
20
+ "noImplicitReturns " : true ,
18
21
"noUnusedLocals" : true ,
19
22
"noUnusedParameters" : true ,
20
23
"pretty" : true ,
21
- "skipLibCheck " : true ,
22
- "sourceMap " : true
24
+ "sourceMap " : true ,
25
+ "strict " : true
23
26
},
24
27
"include" : [" src" ]
25
28
}
Original file line number Diff line number Diff line change 939
939
resolved "https://registry.yarnpkg.com/@types/json5/-/json5-0.0.29.tgz#ee28707ae94e11d2b827bcbe5270bcea7f3e71ee"
940
940
integrity sha1-7ihweulOEdK4J7y+UnC86n8+ce4=
941
941
942
+ " @types/node@^12.7.5 " :
943
+ version "12.7.5"
944
+ resolved "https://registry.yarnpkg.com/@types/node/-/node-12.7.5.tgz#e19436e7f8e9b4601005d73673b6dc4784ffcc2f"
945
+ integrity sha512-9fq4jZVhPNW8r+UYKnxF1e2HkDWOWKM5bC2/7c9wPV835I0aOrVbS/Hw/pWPk2uKrNXQqg9Z959Kz+IYDd5p3w==
946
+
942
947
" @types/stack-utils@^1.0.1 " :
943
948
version "1.0.1"
944
949
resolved "https://registry.yarnpkg.com/@types/stack-utils/-/stack-utils-1.0.1.tgz#0a851d3bd96498fa25c33ab7278ed3bd65f06c3e"
You can’t perform that action at this time.
0 commit comments