File tree 5 files changed +13
-8
lines changed
5 files changed +13
-8
lines changed Original file line number Diff line number Diff line change @@ -2,4 +2,4 @@ be.bastelstu.wcf.push.tar
2
2
files_wcf.tar
3
3
4
4
node_modules
5
- files_wcf. out
5
+ out.d
Original file line number Diff line number Diff line change @@ -12,11 +12,12 @@ files_update_212.tar: files_update_212/acp/be.bastelstu.wcf.push_2.1.2.php
12
12
% .tar :
13
13
tar cvf $@ --numeric-owner --exclude-vcs -C $* -- $(^:$* /%=% )
14
14
15
- files_wcf/js/% .js : ts/% .ts
15
+ files_wcf/js/% .js : ts/% .ts tsconfig.json
16
16
yarn run tsc
17
17
18
18
clean :
19
19
-find files_wcf/js/ -iname ' *.js' -delete
20
+ -find files_wcf/js/ -iname ' *.js.map' -delete
20
21
-rm -f files_wcf.tar
21
22
-rm -rf files_wcf.out
22
23
Original file line number Diff line number Diff line change 1
1
* .js
2
+ * .js.map
Original file line number Diff line number Diff line change 29
29
*/
30
30
31
31
class Push {
32
- async onConnect ( callback ) {
32
+ async onConnect ( callback : ( ) => unknown ) : Promise < void > {
33
33
throw new Error ( "Unsupported" ) ;
34
34
}
35
35
36
- async onDisconnect ( callback ) {
36
+ async onDisconnect ( callback : ( ) => unknown ) : Promise < void > {
37
37
throw new Error ( "Unsupported" ) ;
38
38
}
39
39
40
- async onMessage ( message , callback ) {
40
+ async onMessage ( message : string , callback : ( payload : unknown ) => unknown ) : Promise < void > {
41
41
throw new Error ( "Unsupported" ) ;
42
42
}
43
43
44
- getFeatureFlags ( ) {
44
+ getFeatureFlags ( ) : string [ ] {
45
45
return [ ] ;
46
46
}
47
47
}
Original file line number Diff line number Diff line change 9
9
"rootDir" : " ts/" ,
10
10
"outDir" : " files_wcf/js/" ,
11
11
"lib" : [
12
+ " dom" ,
12
13
" es2015"
13
14
],
14
- "strictNullChecks" : true ,
15
15
"moduleResolution" : " node" ,
16
16
"esModuleInterop" : true ,
17
17
"noImplicitThis" : true ,
18
- "strictBindCallApply" : true
18
+ "strict" : true ,
19
+ "sourceMap" : true ,
20
+ "declarationDir" : " out.d" ,
21
+ "declaration" : true
19
22
}
20
23
}
You can’t perform that action at this time.
0 commit comments