Skip to content

Commit 690d336

Browse files
committed
Update tsconfig.json
1 parent 5fa08f7 commit 690d336

File tree

5 files changed

+13
-8
lines changed

5 files changed

+13
-8
lines changed

.gitignore

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ be.bastelstu.wcf.push.tar
22
files_wcf.tar
33

44
node_modules
5-
files_wcf.out
5+
out.d

Makefile

+2-1
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,12 @@ files_update_212.tar: files_update_212/acp/be.bastelstu.wcf.push_2.1.2.php
1212
%.tar:
1313
tar cvf $@ --numeric-owner --exclude-vcs -C $* -- $(^:$*/%=%)
1414

15-
files_wcf/js/%.js: ts/%.ts
15+
files_wcf/js/%.js: ts/%.ts tsconfig.json
1616
yarn run tsc
1717

1818
clean:
1919
-find files_wcf/js/ -iname '*.js' -delete
20+
-find files_wcf/js/ -iname '*.js.map' -delete
2021
-rm -f files_wcf.tar
2122
-rm -rf files_wcf.out
2223

files_wcf/js/.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
*.js
2+
*.js.map

ts/Bastelstu.be/_Push.ts

+4-4
Original file line numberDiff line numberDiff line change
@@ -29,19 +29,19 @@
2929
*/
3030

3131
class Push {
32-
async onConnect(callback) {
32+
async onConnect(callback: () => unknown): Promise<void> {
3333
throw new Error("Unsupported");
3434
}
3535

36-
async onDisconnect(callback) {
36+
async onDisconnect(callback: () => unknown): Promise<void> {
3737
throw new Error("Unsupported");
3838
}
3939

40-
async onMessage(message, callback) {
40+
async onMessage(message: string, callback: (payload: unknown) => unknown): Promise<void> {
4141
throw new Error("Unsupported");
4242
}
4343

44-
getFeatureFlags() {
44+
getFeatureFlags(): string[] {
4545
return [];
4646
}
4747
}

tsconfig.json

+5-2
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,15 @@
99
"rootDir": "ts/",
1010
"outDir": "files_wcf/js/",
1111
"lib": [
12+
"dom",
1213
"es2015"
1314
],
14-
"strictNullChecks": true,
1515
"moduleResolution": "node",
1616
"esModuleInterop": true,
1717
"noImplicitThis": true,
18-
"strictBindCallApply": true
18+
"strict": true,
19+
"sourceMap": true,
20+
"declarationDir": "out.d",
21+
"declaration": true
1922
}
2023
}

0 commit comments

Comments
 (0)