Skip to content

Commit f108800

Browse files
committed
test: update api golden for core for new query APIs
1 parent c77976d commit f108800

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

goldens/public-api/core/index.md

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1281,7 +1281,7 @@ export class QueryList<T> implements Iterable<T> {
12811281
get changes(): Observable<any>;
12821282
destroy(): void;
12831283
// (undocumented)
1284-
readonly dirty = true;
1284+
readonly dirty: boolean;
12851285
filter<S extends T>(predicate: (value: T, index: number, array: readonly T[]) => value is S): S[];
12861286
// (undocumented)
12871287
filter(predicate: (value: T, index: number, array: readonly T[]) => unknown): T[];
@@ -1296,6 +1296,7 @@ export class QueryList<T> implements Iterable<T> {
12961296
readonly length: number;
12971297
map<U>(fn: (item: T, index: number, array: T[]) => U): U[];
12981298
notifyOnChanges(): void;
1299+
onDirty(cb: () => void): void;
12991300
reduce<U>(fn: (prevValue: U, curValue: T, curIndex: number, array: T[]) => U, init: U): U;
13001301
reset(resultsTree: Array<T | any[]>, identityAccessor?: (value: T) => unknown): void;
13011302
setDirty(): void;
@@ -1598,6 +1599,12 @@ export type ViewChild = Query;
15981599
// @public
15991600
export const ViewChild: ViewChildDecorator;
16001601

1602+
// @public (undocumented)
1603+
export function viewChild<T>(selector: ProviderToken<unknown> | Function | string, opts?: {
1604+
read?: any;
1605+
static?: boolean;
1606+
}): Signal<T | undefined>;
1607+
16011608
// @public
16021609
export interface ViewChildDecorator {
16031610
(selector: ProviderToken<unknown> | Function | string, opts?: {
@@ -1617,6 +1624,12 @@ export type ViewChildren = Query;
16171624
// @public
16181625
export const ViewChildren: ViewChildrenDecorator;
16191626

1627+
// @public (undocumented)
1628+
export function viewChildren<T>(selector: ProviderToken<unknown> | Function | string, opts?: {
1629+
read?: any;
1630+
emitDistinctChangesOnly?: boolean;
1631+
}): Signal<T[]>;
1632+
16201633
// @public
16211634
export interface ViewChildrenDecorator {
16221635
(selector: ProviderToken<unknown> | Function | string, opts?: {

0 commit comments

Comments
 (0)