File tree Expand file tree Collapse file tree 6 files changed +18
-6
lines changed Expand file tree Collapse file tree 6 files changed +18
-6
lines changed Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ function generatePattern(words: string): RegExp {
4141 return pattern ;
4242}
4343
44- let clearSuccessIndicatorHandle : number ;
44+ let clearSuccessIndicatorHandle : NodeJS . Timeout ;
4545function displayPattern ( pattern : RegExp ) : void {
4646 $output . value = pattern . toString ( ) ;
4747 $output . dispatchEvent ( new Event ( 'input' ) ) ;
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ describe('parseString', () => {
1414 expect ( wordList ) . toEqual ( [ ] ) ;
1515 }
1616
17- [ '' , null , undefined ] . forEach ( testInput ) ;
17+ [ '' , null , undefined ] . forEach ( val => testInput ( val as string ) ) ;
1818 } ) ;
1919
2020 it ( 'returns entire input string in array when delimiter is empty' , ( ) => {
@@ -23,7 +23,7 @@ describe('parseString', () => {
2323 expect ( wordList ) . toEqual ( [ ' some input string ' ] ) ;
2424 }
2525
26- [ '' , null , undefined ] . forEach ( testDelimiter ) ;
26+ [ '' , null , undefined ] . forEach ( val => testDelimiter ( val as string ) ) ;
2727 } ) ;
2828
2929 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 = {
1313 {
1414 loader : 'ts-loader' ,
1515 options : {
16- compilerOptions : { noEmit : false } ,
16+ compilerOptions : {
17+ checkJs : false , // workaround for TypeStrong/ts-loader#702
18+ noEmit : false ,
19+ } ,
1720 configFile : resolve ( __dirname , './tsconfig.json' ) ,
1821 } ,
1922 } ,
Original file line number Diff line number Diff line change 4343 "@types/escape-string-regexp" : " ^1.0.0" ,
4444 "@types/jest" : " ^24.0.18" ,
4545 "@types/jest-when" : " ^2.7.0" ,
46+ "@types/node" : " ^12.7.5" ,
4647 "@typescript-eslint/eslint-plugin" : " ^2.2.0" ,
4748 "@typescript-eslint/parser" : " ^2.2.0" ,
4849 "eslint" : " 6.1.0" ,
Original file line number Diff line number Diff line change 22 "compilerOptions" : {
33 "allowJs" : true ,
44 "baseUrl" : " ./" ,
5+ "checkJs" : true ,
56 "downlevelIteration" : true ,
67 "esModuleInterop" : true ,
8+ "forceConsistentCasingInFileNames" : true ,
79 "rootDir" : " ./" ,
810 "lib" : [
911 " es5" ,
1416 ],
1517 "module" : " es2015" ,
1618 "noEmit" : true ,
17- "noImplicitAny " : true ,
19+ "noImplicitReturns " : true ,
1820 "noUnusedLocals" : true ,
1921 "noUnusedParameters" : true ,
2022 "pretty" : true ,
2123 "skipLibCheck" : true ,
22- "sourceMap" : true
24+ "sourceMap" : true ,
25+ "strict" : true
2326 },
2427 "include" : [" src" ]
2528}
Original file line number Diff line number Diff line change 939939 resolved "https://registry.yarnpkg.com/@types/json5/-/json5-0.0.29.tgz#ee28707ae94e11d2b827bcbe5270bcea7f3e71ee"
940940 integrity sha1-7ihweulOEdK4J7y+UnC86n8+ce4=
941941
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+
942947" @types/stack-utils@^1.0.1 " :
943948 version "1.0.1"
944949 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