You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit c9db839
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: tests/hints_spec.lua
+62-16Lines changed: 62 additions & 16 deletions
Original file line number
Diff line number
Diff line change
@@ -5,19 +5,26 @@ local parse = require("effect-error-pretty.parse")
5
5
localrender=require("effect-error-pretty.render")
6
6
localhints=require("effect-error-pretty.hints")
7
7
8
-
localSUFFIX=" with 'exactOptionalPropertyTypes: true'. Consider adding 'undefined' to the types of the target's properties."
9
-
localMISSING="Argument of type 'Effect<string, NotFound, Greeter | Database>' is not assignable to parameter of type 'Effect<string, NotFound, never>'" ..SUFFIX
10
-
localUNHANDLED="Type 'Effect<string, NotFound, Database>' is not assignable to type 'Effect<string, never, Database>'" ..SUFFIX
8
+
localSUFFIX=
9
+
" with 'exactOptionalPropertyTypes: true'. Consider adding 'undefined' to the types of the target's properties."
10
+
localMISSING="Argument of type 'Effect<string, NotFound, Greeter | Database>' is not assignable to parameter of type 'Effect<string, NotFound, never>'"
11
+
..SUFFIX
12
+
localUNHANDLED="Type 'Effect<string, NotFound, Database>' is not assignable to type 'Effect<string, never, Database>'"
13
+
..SUFFIX
11
14
localLS_ERRORS="Missing 'NotFound | Timeout' in the expected Effect errors."
12
15
localLS_CTX="This Effect requires a service that is missing from the expected Effect context: `Greeter`."
13
16
localSCOPE="Type 'Effect<string, never, Scope>' is not assignable to type 'Effect<string, never, never>'"
14
-
localLAYER_RIN="Type 'Layer<{ readonly get: (id: string) => Effect<User, DbError, never>; }, never, Database>' is not assignable to type 'Layer<{ readonly get: (id: string) => Effect<User, DbError, never>; }, never, never>'."
17
+
localLAYER_RIN=
18
+
"Type 'Layer<{ readonly get: (id: string) => Effect<User, DbError, never>; }, never, Database>' is not assignable to type 'Layer<{ readonly get: (id: string) => Effect<User, DbError, never>; }, never, never>'."
15
19
localLS_LAYER="Missing 'Database' in the expected Layer context."
16
-
localWIDE_R="Argument of type 'Effect<string, never, unknown>' is not assignable to parameter of type 'Effect<string, never, never>'" ..SUFFIX
17
-
localWIDE_E="Type 'Effect<string, unknown, never>' is not assignable to type 'Effect<string, never, never>'" ..SUFFIX
20
+
localWIDE_R="Argument of type 'Effect<string, never, unknown>' is not assignable to parameter of type 'Effect<string, never, never>'"
21
+
..SUFFIX
22
+
localWIDE_E="Type 'Effect<string, unknown, never>' is not assignable to type 'Effect<string, never, never>'"
23
+
..SUFFIX
18
24
localLS_WIDE_E="Missing 'unknown' in the expected Effect errors."
19
25
localLS_WIDE_RIN="Missing 'any' in the expected Layer context."
20
-
localMULTI="Type 'Effect<string, NotFound, Database>' is not assignable to type 'Effect<number, never, never>'" ..SUFFIX
26
+
localMULTI="Type 'Effect<string, NotFound, Database>' is not assignable to type 'Effect<number, never, never>'"
0 commit comments