File tree 5 files changed +12
-8
lines changed
5 files changed +12
-8
lines changed Original file line number Diff line number Diff line change
1
+ {
2
+ "typescript.tsdk" : " node_modules/typescript/lib"
3
+ }
Original file line number Diff line number Diff line change @@ -313,7 +313,8 @@ export class Template {
313
313
const attributeNameInPart =
314
314
lastAttributeNameRegex . exec ( stringForPart ) ! [ 1 ] ;
315
315
// Find the corresponding attribute
316
- const attribute = attributes . getNamedItem ( attributeNameInPart ) ;
316
+ // TODO(justinfagnani): remove non-null assertion
317
+ const attribute = attributes . getNamedItem ( attributeNameInPart ) ! ;
317
318
const stringsForAttributeValue = attribute . value . split ( markerRegex ) ;
318
319
this . parts . push ( new TemplatePart (
319
320
'attribute' ,
Original file line number Diff line number Diff line change 18
18
*/
19
19
export class Deferred < T > {
20
20
readonly promise : Promise < T > ;
21
- readonly resolve : ( value : T ) => void ;
22
- readonly reject : ( error : Error ) => void ;
21
+ resolve ! : ( value : T ) => void ;
22
+ reject ! : ( error : Error ) => void ;
23
23
24
24
constructor ( ) {
25
25
this . promise = new Promise < T > ( ( res , rej ) => {
26
- this . resolve ! = res ;
27
- this . reject ! = rej ;
26
+ this . resolve = res ;
27
+ this . reject = rej ;
28
28
} ) ;
29
29
}
30
30
}
Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ export class TestAsyncIterable<T> implements AsyncIterable<T> {
29
29
*/
30
30
private _nextValue : Promise < T > =
31
31
new Promise ( ( resolve , _ ) => this . _resolveNextValue = resolve ) ;
32
- private _resolveNextValue : ( value : T ) => void ;
32
+ private _resolveNextValue ! : ( value : T ) => void ;
33
33
34
34
async * [ Symbol . asyncIterator ] ( ) {
35
35
while ( true ) {
Original file line number Diff line number Diff line change 7
7
"sourceMap" : true ,
8
8
"inlineSources" : true ,
9
9
"outDir" : " ./" ,
10
- // "rootDir": "./", /* Specify the root directory of input files. Use to control the output directory structure with --outDir. */
11
10
"strict" : true ,
12
11
"noUnusedLocals" : true ,
13
12
"noUnusedParameters" : true ,
14
13
"noImplicitReturns" : true ,
15
- "noFallthroughCasesInSwitch" : true
14
+ "noFallthroughCasesInSwitch" : true ,
15
+ "skipLibCheck" : true
16
16
},
17
17
"include" : [
18
18
" src/**/*.ts"
You can’t perform that action at this time.
0 commit comments