@@ -1636,15 +1636,6 @@ function foo(thing): Promise<any> {}
1636
1636
function foo (thing ): Promise<Promise<any>> {}
1637
1637
// Message: Unexpected use of weak type "any"
1638
1638
1639
- function foo (thing ): mixed {}
1640
- // Message: Unexpected use of weak type "mixed"
1641
-
1642
- function foo (thing ): Promise<mixed> {}
1643
- // Message: Unexpected use of weak type "mixed"
1644
-
1645
- function foo (thing ): Promise<Promise<mixed>> {}
1646
- // Message: Unexpected use of weak type "mixed"
1647
-
1648
1639
function foo (thing ): Object {}
1649
1640
// Message: Unexpected use of weak type "Object"
1650
1641
@@ -1731,10 +1722,6 @@ type X = any; type Y = Function; type Z = Object
1731
1722
// Options: [{"any":false,"Object":false}]
1732
1723
type X = any; type Y = Function ; type Z = Object
1733
1724
// Message: Unexpected use of weak type "Function"
1734
-
1735
- // Options: [{"Function":false,"Object":false}]
1736
- type X = mixed; type Y = Function ; type Z = Object
1737
- // Message: Unexpected use of weak type "mixed"
1738
1725
` ` `
1739
1726
1740
1727
The following patterns are not considered problems:
@@ -1771,9 +1758,6 @@ class Foo { props: string }
1771
1758
// Options: [{"any":false,"Object":false}]
1772
1759
type X = any; type Y = Object
1773
1760
1774
- // Options: [{"mixed":false,"Object":false}]
1775
- type X = mixed; type Y = Object
1776
-
1777
1761
// Options: [{"Function":false}]
1778
1762
type X = Function
1779
1763
0 commit comments