File tree Expand file tree Collapse file tree
projects/configuration-options/strictly-speaking Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -15,8 +15,8 @@ Of conquering soldiery.
1515Of brave deeds and noble intentions, spoken softly so as to not sharply jut out with overt obviousness.
1616
1717Will you repair for me this speechwriter program?
18- I fear it was originally written without TypeScript's ` --strictNullChecks ` mode .
19- You must restore strict null safety -` undefined ` and all- that it may run justly and without type errors.
18+ I fear it was originally written without TypeScript's ` --noImplicitAny ` or ` -- strictNullChecks` modes .
19+ You must restore strict type safety -` undefined ` and all- that it may run justly and without type errors.
2020
2121## Setup
2222
Original file line number Diff line number Diff line change 22
33import { words } from "./words" ;
44
5- async function seconds ( amount : number ) {
5+ async function seconds ( amount ) {
66 await new Promise ( ( resolve ) => setTimeout ( resolve , amount * 1000 ) ) ;
77}
88
@@ -18,7 +18,7 @@ async function speakLines(lines: (number | string)[]) {
1818}
1919
2020function generateLines ( quantity : number ) {
21- const lines : ( number | string ) [ ] = [ generateLine ( "Lorem ipsum" ) ] ;
21+ const lines = [ generateLine ( "Lorem ipsum" ) ] ;
2222
2323 for ( let i = 0 ; i < quantity - 1 ; i += 1 ) {
2424 lines . push ( generateLine ( ) ) ;
@@ -31,7 +31,7 @@ function generateLines(quantity: number) {
3131 return lines ;
3232}
3333
34- function generateLine ( prefix : string ) {
34+ function generateLine ( prefix ) {
3535 const words : string [ ] = prefix ? [ prefix ] : [ ] ;
3636 const quantity = randomInt ( 3 , 10 ) ;
3737
You can’t perform that action at this time.
0 commit comments