feat(QueryList): support index in callbacks

Closes #9278
This commit is contained in:
Pawel Kozlowski
2016-06-17 15:38:52 +02:00
committed by Victor Berchet
parent 6c389ed32f
commit 5fe60759f9
3 changed files with 37 additions and 15 deletions

View File

@ -414,14 +414,14 @@ const CORE = [
'ProviderBuilder.toValue(value:any):Provider',
'QueryList.changes:Observable<any>',
'QueryList.dirty:any',
'QueryList.filter(fn:(item: T) => boolean):T[]',
'QueryList.filter(fn:(item: T, index?: number) => boolean):T[]',
'QueryList.first:T',
'QueryList.forEach(fn:(item: T) => void):void',
'QueryList.forEach(fn:(item: T, index?: number) => void):void',
'QueryList.last:T',
'QueryList.length:number',
'QueryList.map(fn:(item: T) => U):U[]',
'QueryList.map(fn:(item: T, index?: number) => U):U[]',
'QueryList.notifyOnChanges():void',
'QueryList.reduce(fn:(acc: U, item: T) => U, init:U):U',
'QueryList.reduce(fn:(acc: U, item: T, index?: number) => U, init:U):U',
'QueryList.reset(res:Array<T|any[]>):void',
'QueryList.setDirty():any',
'QueryList.toArray():T[]',