File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -203,6 +203,8 @@ namespace ts {
203
203
* Filters an array by a predicate function. Returns the same array instance if the predicate is
204
204
* true for all elements, otherwise returns a new array instance containing the filtered subset.
205
205
*/
206
+ export function filter < T , U extends T > ( array : T [ ] , f : ( x : T ) => x is U ) : U [ ] ;
207
+ export function filter < T > ( array : T [ ] , f : ( x : T ) => boolean ) : T [ ]
206
208
export function filter < T > ( array : T [ ] , f : ( x : T ) => boolean ) : T [ ] {
207
209
if ( array ) {
208
210
const len = array . length ;
Original file line number Diff line number Diff line change @@ -1034,7 +1034,7 @@ namespace ts {
1034
1034
* @param isStatic A value indicating whether to get properties from the static or instance side of the class.
1035
1035
*/
1036
1036
function getInitializedProperties ( node : ClassExpression | ClassDeclaration , isStatic : boolean ) : PropertyDeclaration [ ] {
1037
- return filter ( node . members , isStatic ? isStaticInitializedProperty : isInstanceInitializedProperty ) ;
1037
+ return filter ( node . members , isStatic ? isStaticInitializedProperty : isInstanceInitializedProperty ) ;
1038
1038
}
1039
1039
1040
1040
/**
You can’t perform that action at this time.
0 commit comments