1- a.js(2,14): error TS1274: 'out' modifier can only appear on a type parameter of a class, interface or type alias
21a.js(18,1): error TS2322: Type 'Covariant<unknown>' is not assignable to type 'Covariant<string>'.
32 Type 'unknown' is not assignable to type 'string'.
4- a.js(21,14): error TS1274: 'in' modifier can only appear on a type parameter of a class, interface or type alias
53a.js(36,1): error TS2322: Type 'Contravariant<string>' is not assignable to type 'Contravariant<unknown>'.
64 Type 'unknown' is not assignable to type 'string'.
7- a.js(40,14): error TS1274: 'in' modifier can only appear on a type parameter of a class, interface or type alias
85a.js(55,1): error TS2322: Type 'Invariant<string>' is not assignable to type 'Invariant<unknown>'.
96 Types of property 'f' are incompatible.
107 Type '(x: string) => string' is not assignable to type '(x: unknown) => unknown'.
@@ -16,11 +13,9 @@ a.js(56,1): error TS2322: Type 'Invariant<unknown>' is not assignable to type 'I
1613a.js(59,14): error TS1274: 'in' modifier can only appear on a type parameter of a class, interface or type alias
1714
1815
19- ==== a.js (8 errors) ====
16+ ==== a.js (5 errors) ====
2017 /**
2118 * @template out T
22- ~~~
23- !!! error TS1274: 'out' modifier can only appear on a type parameter of a class, interface or type alias
2419 * @typedef {Object} Covariant
2520 * @property {T} x
2621 */
@@ -43,8 +38,6 @@ a.js(59,14): error TS1274: 'in' modifier can only appear on a type parameter of
4338
4439 /**
4540 * @template in T
46- ~~
47- !!! error TS1274: 'in' modifier can only appear on a type parameter of a class, interface or type alias
4841 * @typedef {Object} Contravariant
4942 * @property {(x: T) => void} f
5043 */
@@ -67,8 +60,6 @@ a.js(59,14): error TS1274: 'in' modifier can only appear on a type parameter of
6760
6861 /**
6962 * @template in out T
70- ~~
71- !!! error TS1274: 'in' modifier can only appear on a type parameter of a class, interface or type alias
7263 * @typedef {Object} Invariant
7364 * @property {(x: T) => T} f
7465 */
0 commit comments