6 Commits

Author SHA1 Message Date
Raccoon
3eca23810f
lint: lib/workers/dmpWorker.ts
- add diff-match-patch typing
- add typing annotate

Signed-off-by: Raccoon <raccoon@hackmd.io>
2021-06-16 18:35:38 +08:00
Raccoon
2944da0415
lint: lib/realtime/realtime.ts
- add typing annotate
- install @types/socket.io, @types/randomcolor, @types/passport.socketio

Signed-off-by: Raccoon <raccoon@hackmd.io>
2021-06-16 18:35:37 +08:00
Raccoon
0427b1ba74
web/middleware/checkVersion.ts
Signed-off-by: Raccoon <raccoon@hackmd.io>
2021-06-16 18:35:36 +08:00
Raccoon
a5376a472a
lint: lib/auth/utils.ts
- install @types/express-session for req.session
- add returnTo into sessionData
- add typing annotate in passportGeneralCallback and remove unused var

Signed-off-by: Raccoon <raccoon@hackmd.io>
2021-06-16 18:35:35 +08:00
Raccoon
ba8b1f1fe2
lint: lib/response.ts
- add typing for req.user.id
- add typing annotate in response.ts and fix type error in errorPage/index.ts

Signed-off-by: Raccoon <raccoon@hackmd.io>
2021-06-16 18:35:34 +08:00
Raccoon
b78cfc3d96
ts: lib/config/environment.js
Signed-off-by: Raccoon <raccoon@hackmd.io>
2021-06-16 18:35:25 +08:00