Skip to content

Commit e40141f

Browse files
Update user baselines +cc @sandersn
1 parent bec8071 commit e40141f

17 files changed

+578
-664
lines changed

Diff for: tests/baselines/reference/docker/azure-sdk.log

+44-20
Large diffs are not rendered by default.

Diff for: tests/baselines/reference/docker/office-ui-fabric.log

+179-172
Large diffs are not rendered by default.

Diff for: tests/baselines/reference/docker/pyright.log

+1-9
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,9 @@
1-
Exit Code: 2
1+
Exit Code: 0
22
Standard output:
3-
pyright-internal: src/tests/harness/utils.ts(328,12): error TS2774: This condition will always return true since the function is always defined. Did you mean to call it instead?
43

54

65

76
Standard error:
87
lerna notice cli vX.X.X
98
lerna info Executing command in 3 packages: "tsc --noEmit"
10-
lerna ERR! Received non-zero exit code 2 during execution
119
lerna success exec Executed command in 3 packages: "tsc --noEmit"
12-
npm ERR! code 2
13-
npm ERR! path /pyright
14-
npm ERR! command failed
15-
npm ERR! command sh -c lerna exec --stream --concurrency 1 --no-bail -- tsc --noEmit
16-
npm ERR! A complete log of this run can be found in:
17-
npm ERR! /root/.npm/_logs/XXXX-XX-XXXXXXXXX-debug.log

Diff for: tests/baselines/reference/docker/vue-next.log

+77-113
Large diffs are not rendered by default.

Diff for: tests/baselines/reference/user/TypeScript-Node-Starter.log

+38-8
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,44 @@ Standard output:
33
node_modules/connect-mongo/src/types.d.ts(113,66): error TS2694: Namespace 'Express' has no exported member 'SessionData'.
44
node_modules/connect-mongo/src/types.d.ts(114,45): error TS2694: Namespace 'Express' has no exported member 'SessionData'.
55
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.
1444

1545

1646

Diff for: tests/baselines/reference/user/TypeScript-WeChat-Starter.log

+1-6
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,6 @@
11
Exit Code: 2
22
Standard output:
3-
node_modules/@types/connect/index.d.ts(21,42): error TS2689: Cannot extend an interface 'http.IncomingMessage'. Did you mean 'implements'?
4-
node_modules/@types/serve-static/index.d.ts(18,45): error TS2694: Namespace '"http"' has no exported member 'OutgoingMessage'.
5-
node_modules/@types/serve-static/index.d.ts(25,49): error TS2694: Namespace '"http"' has no exported member 'OutgoingMessage'.
6-
node_modules/@types/serve-static/index.d.ts(25,72): error TS2694: Namespace '"http"' has no exported member 'OutgoingMessage'.
7-
node_modules/@types/serve-static/index.d.ts(98,45): error TS2694: Namespace '"http"' has no exported member 'OutgoingMessage'.
8-
node_modules/@types/serve-static/index.d.ts(102,56): error TS2694: Namespace '"http"' has no exported member 'OutgoingMessage'.
3+
node_modules/@types/connect/index.d.ts(20,42): error TS2689: Cannot extend an interface 'http.IncomingMessage'. Did you mean 'implements'?
94

105

116

Diff for: tests/baselines/reference/user/adonis-framework.log

+9-9
Original file line numberDiff line numberDiff line change
@@ -35,19 +35,19 @@ node_modules/adonis-framework/src/Config/index.js(39,15): error TS2304: Cannot f
3535
node_modules/adonis-framework/src/Config/index.js(58,15): error TS2304: Cannot find name 'Mixed'.
3636
node_modules/adonis-framework/src/Encryption/index.js(53,15): error TS2304: Cannot find name 'Mixed'.
3737
node_modules/adonis-framework/src/Encryption/index.js(71,34): error TS2769: No overload matches this call.
38-
Overload 1 of 4, '(data: ArrayBufferView, input_encoding: undefined, output_encoding: HexBase64BinaryEncoding): string', gave the following error.
38+
Overload 1 of 4, '(data: ArrayBufferView, input_encoding: undefined, output_encoding: BinaryToTextEncoding): string', gave the following error.
3939
Argument of type 'string' is not assignable to parameter of type 'undefined'.
40-
Overload 2 of 4, '(data: string, input_encoding: "utf8" | "ascii" | "binary" | undefined, output_encoding: HexBase64BinaryEncoding): string', gave the following error.
41-
Argument of type 'string' is not assignable to parameter of type '"utf8" | "ascii" | "binary" | undefined'.
40+
Overload 2 of 4, '(data: string, input_encoding: "utf8" | "ascii" | "utf-8" | "utf16le" | "ucs2" | "ucs-2" | "base64" | "latin1" | "binary" | "hex" | undefined, output_encoding: BinaryToTextEncoding): string', gave the following error.
41+
Argument of type 'string' is not assignable to parameter of type '"utf8" | "ascii" | "utf-8" | "utf16le" | "ucs2" | "ucs-2" | "base64" | "latin1" | "binary" | "hex" | undefined'.
4242
node_modules/adonis-framework/src/Encryption/index.js(77,27): error TS2322: Type 'string' is not assignable to type 'Buffer'.
4343
node_modules/adonis-framework/src/Encryption/index.js(77,50): error TS2345: Argument of type 'Buffer' is not assignable to parameter of type 'string'.
4444
node_modules/adonis-framework/src/Encryption/index.js(85,23): error TS8024: JSDoc '@param' tag has name 'value', but there is no parameter with that name.
4545
node_modules/adonis-framework/src/Encryption/index.js(87,15): error TS2304: Cannot find name 'Mixed'.
46-
node_modules/adonis-framework/src/Encryption/index.js(101,62): error TS2769: No overload matches this call.
47-
Overload 1 of 4, '(data: ArrayBufferView, input_encoding: "base64" | "binary" | "hex" | undefined, output_encoding: Utf8AsciiBinaryEncoding): string', gave the following error.
48-
Argument of type 'string' is not assignable to parameter of type 'Utf8AsciiBinaryEncoding'.
49-
Overload 2 of 4, '(data: string, input_encoding: "base64" | "binary" | "hex" | undefined, output_encoding: Utf8AsciiBinaryEncoding): string', gave the following error.
50-
Argument of type 'string' is not assignable to parameter of type 'Utf8AsciiBinaryEncoding'.
46+
node_modules/adonis-framework/src/Encryption/index.js(101,21): error TS2769: No overload matches this call.
47+
Overload 1 of 4, '(data: ArrayBufferView, input_encoding: undefined, output_encoding: BufferEncoding): string', gave the following error.
48+
Argument of type '"base64"' is not assignable to parameter of type 'undefined'.
49+
Overload 2 of 4, '(data: string, input_encoding: "base64" | "hex" | undefined, output_encoding: BufferEncoding): string', gave the following error.
50+
Argument of type 'string' is not assignable to parameter of type 'BufferEncoding'.
5151
node_modules/adonis-framework/src/Encryption/index.js(102,5): error TS2322: Type 'string' is not assignable to type 'Buffer & string'.
5252
Type 'string' is not assignable to type 'Buffer'.
5353
node_modules/adonis-framework/src/Encryption/index.js(102,33): error TS2345: Argument of type 'string' is not assignable to parameter of type 'BufferEncoding'.
@@ -125,7 +125,7 @@ node_modules/adonis-framework/src/Request/index.js(466,15): error TS2304: Cannot
125125
node_modules/adonis-framework/src/Request/index.js(468,15): error TS2304: Cannot find name 'Mixed'.
126126
node_modules/adonis-framework/src/Request/index.js(480,14): error TS2304: Cannot find name 'Mixed'.
127127
node_modules/adonis-framework/src/Request/index.js(482,15): error TS2304: Cannot find name 'Mixed'.
128-
node_modules/adonis-framework/src/Request/index.js(499,17): error TS2551: Property '_params' does not exist on type 'Request'. Did you mean 'param'?
128+
node_modules/adonis-framework/src/Request/index.js(499,17): error TS2551: Property '_params' does not exist on type 'Request'. Did you mean 'params'?
129129
node_modules/adonis-framework/src/Request/index.js(523,15): error TS2304: Cannot find name 'Objecr'.
130130
node_modules/adonis-framework/src/Request/index.js(572,23): error TS8029: JSDoc '@param' tag has name 'pattern', but there is no parameter with that name. It would match 'arguments' if it had an array type.
131131
node_modules/adonis-framework/src/Request/index.js(600,17): error TS2554: Expected 2 arguments, but got 1.

Diff for: tests/baselines/reference/user/axios-src.log

+13-10
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,20 @@
11
Exit Code: 2
22
Standard output:
33
lib/adapters/http.js(13,19): error TS2732: Cannot find module './../../package.json'. Consider using '--resolveJsonModule' to import module with '.json' extension.
4-
lib/adapters/http.js(84,22): error TS2345: Argument of type 'string | null' is not assignable to parameter of type 'string'.
4+
lib/adapters/http.js(22,12): error TS2304: Cannot find name 'AxiosProxyConfig'.
5+
lib/adapters/http.js(34,5): error TS2532: Object is possibly 'undefined'.
6+
lib/adapters/http.js(38,11): error TS2339: Property 'beforeRedirect' does not exist on type 'ClientRequestArgs'.
7+
lib/adapters/http.js(109,22): error TS2345: Argument of type 'string | null' is not assignable to parameter of type 'string'.
58
Type 'null' is not assignable to type 'string'.
6-
lib/adapters/http.js(121,17): error TS2531: Object is possibly 'null'.
7-
lib/adapters/http.js(121,40): error TS2531: Object is possibly 'null'.
8-
lib/adapters/http.js(225,23): error TS2345: Argument of type 'null' is not assignable to parameter of type 'string | undefined'.
9-
lib/adapters/http.js(231,44): error TS2345: Argument of type 'null' is not assignable to parameter of type 'string | undefined'.
10-
lib/adapters/http.js(237,13): error TS2322: Type 'string' is not assignable to type 'Buffer'.
11-
lib/adapters/http.js(239,15): error TS2322: Type 'string' is not assignable to type 'Buffer'.
12-
lib/adapters/http.js(239,45): error TS2345: Argument of type 'Buffer' is not assignable to parameter of type 'string'.
13-
lib/adapters/http.js(252,40): error TS2345: Argument of type 'null' is not assignable to parameter of type 'string | undefined'.
14-
lib/adapters/http.js(281,42): error TS2345: Argument of type 'null' is not assignable to parameter of type 'string | undefined'.
9+
lib/adapters/http.js(146,17): error TS2531: Object is possibly 'null'.
10+
lib/adapters/http.js(146,40): error TS2531: Object is possibly 'null'.
11+
lib/adapters/http.js(241,23): error TS2345: Argument of type 'null' is not assignable to parameter of type 'string | undefined'.
12+
lib/adapters/http.js(247,44): error TS2345: Argument of type 'null' is not assignable to parameter of type 'string | undefined'.
13+
lib/adapters/http.js(253,13): error TS2322: Type 'string' is not assignable to type 'Buffer'.
14+
lib/adapters/http.js(255,15): error TS2322: Type 'string' is not assignable to type 'Buffer'.
15+
lib/adapters/http.js(255,45): error TS2345: Argument of type 'Buffer' is not assignable to parameter of type 'string'.
16+
lib/adapters/http.js(268,40): error TS2345: Argument of type 'null' is not assignable to parameter of type 'string | undefined'.
17+
lib/adapters/http.js(297,42): error TS2345: Argument of type 'null' is not assignable to parameter of type 'string | undefined'.
1518
lib/adapters/xhr.js(65,7): error TS2322: Type 'null' is not assignable to type 'XMLHttpRequest'.
1619
lib/adapters/xhr.js(77,7): error TS2322: Type 'null' is not assignable to type 'XMLHttpRequest'.
1720
lib/adapters/xhr.js(84,51): error TS2345: Argument of type 'null' is not assignable to parameter of type 'string | undefined'.

Diff for: tests/baselines/reference/user/bcryptjs.log

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ node_modules/bcryptjs/src/bcrypt/util.js(20,5): error TS2304: Cannot find name '
2828
node_modules/bcryptjs/src/wrap.js(37,26): error TS2304: Cannot find name 'define'.
2929
node_modules/bcryptjs/src/wrap.js(37,51): error TS2304: Cannot find name 'define'.
3030
node_modules/bcryptjs/src/wrap.js(38,9): error TS2304: Cannot find name 'define'.
31-
node_modules/bcryptjs/src/wrap.js(49,12): error TS2552: Cannot find name 'bcrypt'. Did you mean 'Crypto'?
31+
node_modules/bcryptjs/src/wrap.js(49,12): error TS2552: Cannot find name 'bcrypt'. Did you mean 'crypto'?
3232
node_modules/bcryptjs/tests/suite.js(3,23): error TS2307: Cannot find module 'bcrypt' or its corresponding type declarations.
3333

3434

0 commit comments

Comments
 (0)