@@ -3,14 +3,44 @@ Standard output:
3
3
node_modules/connect-mongo/src/types.d.ts(113,66): error TS2694: Namespace 'Express' has no exported member 'SessionData'.
4
4
node_modules/connect-mongo/src/types.d.ts(114,45): error TS2694: Namespace 'Express' has no exported member 'SessionData'.
5
5
node_modules/connect-mongo/src/types.d.ts(118,47): error TS2694: Namespace 'Express' has no exported member 'SessionData'.
6
- src/app.ts(72,21): error TS2339: Property 'returnTo' does not exist on type 'Session | InitializedSession'.
7
- Property 'returnTo' does not exist on type 'Session'.
8
- src/app.ts(75,21): error TS2339: Property 'returnTo' does not exist on type 'Session | InitializedSession'.
9
- Property 'returnTo' does not exist on type 'Session'.
10
- src/app.ts(116,30): error TS2339: Property 'returnTo' does not exist on type 'Session | InitializedSession'.
11
- Property 'returnTo' does not exist on type 'Session'.
12
- src/controllers/user.ts(51,38): error TS2339: Property 'returnTo' does not exist on type 'Session | InitializedSession'.
13
- Property 'returnTo' does not exist on type 'Session'.
6
+ src/app.ts(72,21): error TS2339: Property 'returnTo' does not exist on type 'Session & Partial<SessionData>'.
7
+ src/app.ts(75,21): error TS2339: Property 'returnTo' does not exist on type 'Session & Partial<SessionData>'.
8
+ src/app.ts(116,30): error TS2339: Property 'returnTo' does not exist on type 'Session & Partial<SessionData>'.
9
+ src/config/passport.ts(18,24): error TS7006: Parameter 'err' implicitly has an 'any' type.
10
+ src/config/passport.ts(18,29): error TS7006: Parameter 'user' implicitly has an 'any' type.
11
+ src/config/passport.ts(28,51): error TS7006: Parameter 'err' implicitly has an 'any' type.
12
+ src/config/passport.ts(71,49): error TS7006: Parameter 'err' implicitly has an 'any' type.
13
+ src/config/passport.ts(71,54): error TS7006: Parameter 'existingUser' implicitly has an 'any' type.
14
+ src/config/passport.ts(77,45): error TS7006: Parameter 'err' implicitly has an 'any' type.
15
+ src/config/passport.ts(92,49): error TS7006: Parameter 'err' implicitly has an 'any' type.
16
+ src/config/passport.ts(92,54): error TS7006: Parameter 'existingUser' implicitly has an 'any' type.
17
+ src/config/passport.ts(97,59): error TS7006: Parameter 'err' implicitly has an 'any' type.
18
+ src/config/passport.ts(97,64): error TS7006: Parameter 'existingEmailUser' implicitly has an 'any' type.
19
+ src/controllers/user.ts(51,38): error TS2339: Property 'returnTo' does not exist on type 'Session & Partial<SessionData>'.
20
+ src/controllers/user.ts(101,46): error TS7006: Parameter 'err' implicitly has an 'any' type.
21
+ src/controllers/user.ts(101,51): error TS7006: Parameter 'existingUser' implicitly has an 'any' type.
22
+ src/controllers/user.ts(146,29): error TS7006: Parameter 'err' implicitly has an 'any' type.
23
+ src/controllers/user.ts(153,19): error TS2769: No overload matches this call.
24
+ Overload 1 of 3, '(options?: SaveOptions): Promise<UserDocument>', gave the following error.
25
+ Type '(err: WriteError) => void' has no properties in common with type 'SaveOptions'.
26
+ Overload 2 of 3, '(options?: SaveOptions, fn?: (err: NativeError, doc: UserDocument) => void): void', gave the following error.
27
+ Type '(err: WriteError) => void' has no properties in common with type 'SaveOptions'.
28
+ Overload 3 of 3, '(fn?: (err: NativeError, doc: UserDocument) => void): void', gave the following error.
29
+ Argument of type '(err: WriteError) => void' is not assignable to parameter of type '(err: NativeError, doc: UserDocument) => void'.
30
+ Types of parameters 'err' and 'err' are incompatible.
31
+ Type 'NativeError' is missing the following properties from type 'WriteError': code, index, errmsg
32
+ src/controllers/user.ts(183,29): error TS7006: Parameter 'err' implicitly has an 'any' type.
33
+ src/controllers/user.ts(186,19): error TS2769: No overload matches this call.
34
+ Overload 1 of 3, '(options?: SaveOptions): Promise<UserDocument>', gave the following error.
35
+ Type '(err: WriteError) => void' has no properties in common with type 'SaveOptions'.
36
+ Overload 2 of 3, '(options?: SaveOptions, fn?: (err: NativeError, doc: UserDocument) => void): void', gave the following error.
37
+ Type '(err: WriteError) => void' has no properties in common with type 'SaveOptions'.
38
+ Overload 3 of 3, '(fn?: (err: NativeError, doc: UserDocument) => void): void', gave the following error.
39
+ Argument of type '(err: WriteError) => void' is not assignable to parameter of type '(err: NativeError, doc: UserDocument) => void'.
40
+ Types of parameters 'err' and 'err' are incompatible.
41
+ Type 'NativeError' is not assignable to type 'WriteError'.
42
+ src/controllers/user.ts(215,29): error TS7006: Parameter 'err' implicitly has an 'any' type.
43
+ src/controllers/user.ts(349,54): error TS7006: Parameter 'err' implicitly has an 'any' type.
14
44
15
45
16
46
0 commit comments