@@ -22,7 +22,6 @@ interface AbcObject {
2222
2323const abcObject : AbcObject = anything ;
2424const array : AbcObject [ ] | null | undefined = anything ;
25- const readonlyArray : readonly AbcObject [ ] = anything ;
2625const list : _ . List < AbcObject > | null | undefined = anything ;
2726const dictionary : _ . Dictionary < AbcObject > | null | undefined = anything ;
2827const numericDictionary : _ . NumericDictionary < AbcObject > | null | undefined = anything ;
@@ -393,13 +392,6 @@ _.chain([1, 2, 3, 4]).unshift(5, 6); // $ExpectType CollectionChain<number>
393392 _ . fill ( array , abcObject , 0 ) ; // $ExpectType AbcObject[]
394393 _ . fill ( array , abcObject , 0 , 10 ) ; // $ExpectType AbcObject[]
395394
396- // @ts -expect-error
397- _ . fill ( readonlyArray , abcObject ) ;
398- // @ts -expect-error
399- _ . fill ( readonlyArray , abcObject , 0 ) ;
400- // @ts -expect-error
401- _ . fill ( readonlyArray , abcObject , 0 , 10 ) ;
402-
403395 _ . fill ( list , abcObject ) ; // $ExpectType ArrayLike<AbcObject> || List<AbcObject>
404396 _ . fill ( list , abcObject , 0 ) ; // $ExpectType ArrayLike<AbcObject> || List<AbcObject>
405397 _ . fill ( list , abcObject , 0 , 10 ) ; // $ExpectType ArrayLike<AbcObject> || List<AbcObject>
@@ -891,12 +883,6 @@ _.chain([1, 2, 3, 4]).unshift(5, 6); // $ExpectType CollectionChain<number>
891883 _ . pull ( array ) ; // $ExpectType AbcObject[]
892884 _ . pull ( array , abcObject ) ; // $ExpectType AbcObject[]
893885 _ . pull ( array , abcObject , abcObject , abcObject ) ; // $ExpectType AbcObject[]
894- // @ts -expect-error
895- _ . pull ( readonlyArray ) ;
896- // @ts -expect-error
897- _ . pull ( readonlyArray , abcObject ) ;
898- // @ts -expect-error
899- _ . pull ( readonlyArray , abcObject , abcObject , abcObject ) ;
900886 _ . pull ( list ) ; // $ExpectType ArrayLike<AbcObject> || List<AbcObject>
901887 _ . pull ( list , abcObject ) ; // $ExpectType ArrayLike<AbcObject> || List<AbcObject>
902888 _ . pull ( list , abcObject , abcObject , abcObject ) ; // $ExpectType ArrayLike<AbcObject> || List<AbcObject>
@@ -927,12 +913,6 @@ _.chain([1, 2, 3, 4]).unshift(5, 6); // $ExpectType CollectionChain<number>
927913 _ . pullAt ( array ) ; // $ExpectType AbcObject[]
928914 _ . pullAt ( array , 1 ) ; // $ExpectType AbcObject[]
929915 _ . pullAt ( array , [ 2 , 3 ] , 4 ) ; // $ExpectType AbcObject[]
930- // @ts -expect-error
931- _ . pullAt ( readonlyArray ) ;
932- // @ts -expect-error
933- _ . pullAt ( readonlyArray , 1 ) ;
934- // @ts -expect-error
935- _ . pullAt ( readonlyArray , [ 2 , 3 ] , 4 ) ;
936916 _ . pullAt ( list ) ; // $ExpectType ArrayLike<AbcObject> || List<AbcObject>
937917 _ . pullAt ( list , 1 ) ; // $ExpectType ArrayLike<AbcObject> || List<AbcObject>
938918 _ . pullAt ( list , [ 2 , 3 ] , 4 ) ; // $ExpectType ArrayLike<AbcObject> || List<AbcObject>
@@ -966,10 +946,6 @@ _.chain([1, 2, 3, 4]).unshift(5, 6); // $ExpectType CollectionChain<number>
966946
967947 _ . pullAll ( array ) ; // $ExpectType AbcObject[]
968948 _ . pullAll ( array , values ) ; // $ExpectType AbcObject[]
969- // @ts -expect-error
970- _ . pullAll ( readonlyArray ) ;
971- // @ts -expect-error
972- _ . pullAll ( readonlyArray , values ) ;
973949 _ . pullAll ( list ) ; // $ExpectType ArrayLike<AbcObject> || List<AbcObject>
974950 _ . pullAll ( list , values ) ; // $ExpectType ArrayLike<AbcObject> || List<AbcObject>
975951
@@ -1003,11 +979,6 @@ _.chain([1, 2, 3, 4]).unshift(5, 6); // $ExpectType CollectionChain<number>
1003979 return [ ] ;
1004980 } ) ;
1005981
1006- // @ts -expect-error
1007- _ . pullAllBy ( readonlyArray ) ;
1008- // @ts -expect-error
1009- _ . pullAllBy ( readonlyArray , values , "a" ) ;
1010-
1011982 _ . pullAllBy ( list ) ; // $ExpectType ArrayLike<AbcObject> || List<AbcObject>
1012983 _ . pullAllBy ( list , values ) ; // $ExpectType ArrayLike<AbcObject> || List<AbcObject>
1013984 _ . pullAllBy ( list , values , "a" ) ; // $ExpectType ArrayLike<AbcObject> || List<AbcObject>
@@ -1101,10 +1072,6 @@ _.chain([1, 2, 3, 4]).unshift(5, 6); // $ExpectType CollectionChain<number>
11011072 b ; // $ExpectType AbcObject
11021073 return true ;
11031074 } ) ;
1104- // @ts -expect-error
1105- _ . pullAllWith ( readonlyArray ) ;
1106- // @ts -expect-error
1107- _ . pullAllWith ( readonlyArray , values ) ;
11081075 _ . pullAllWith ( list ) ; // $ExpectType ArrayLike<AbcObject> || List<AbcObject>
11091076 // $ExpectType ArrayLike<AbcObject> || List<AbcObject>
11101077 _ . pullAllWith ( list , values , ( a , b ) => {
@@ -1196,15 +1163,6 @@ _.chain([1, 2, 3, 4]).unshift(5, 6); // $ExpectType CollectionChain<number>
11961163 fp . remove ( valueIterator ) ( list ) ; // $ExpectType AbcObject[]
11971164 fp . remove ( "" , list ) ; // $ExpectType AbcObject[]
11981165 fp . remove ( { a : 42 } , list ) ; // $ExpectType AbcObject[]
1199-
1200- // @ts -expect-error
1201- _ . remove ( readonlyArray ) ;
1202- // @ts -expect-error
1203- _ . remove ( readonlyArray , listIterator ) ;
1204- // @ts -expect-error
1205- _ . remove ( readonlyArray , "" ) ;
1206- // @ts -expect-error
1207- _ . remove ( readonlyArray , { a : 42 } ) ;
12081166}
12091167
12101168// _.tail
0 commit comments