feat(core): make static query flag optional (#32686)

Switches back to having the `static` flag be optional on `ViewChild` and `ContentChild` queries, in preparation for changing its default value.

PR Close #32686
This commit is contained in:
crisbeto
2019-09-15 17:24:00 +02:00
committed by atscott
parent 948b01ce55
commit 25219baeb4
3 changed files with 15 additions and 15 deletions

View File

@ -101,7 +101,7 @@ export interface Query {
read: any;
isViewQuery: boolean;
selector: any;
static: boolean;
static?: boolean;
}
/**
@ -222,8 +222,8 @@ export interface ContentChildDecorator {
*
* @Annotation
*/
(selector: Type<any>|Function|string, opts: {read?: any, static: boolean}): any;
new (selector: Type<any>|Function|string, opts: {read?: any, static: boolean}): ContentChild;
(selector: Type<any>|Function|string, opts?: {read?: any, static?: boolean}): any;
new (selector: Type<any>|Function|string, opts?: {read?: any, static?: boolean}): ContentChild;
}
/**
@ -348,8 +348,8 @@ export interface ViewChildDecorator {
*
* @Annotation
*/
(selector: Type<any>|Function|string, opts: {read?: any, static: boolean}): any;
new (selector: Type<any>|Function|string, opts: {read?: any, static: boolean}): ViewChild;
(selector: Type<any>|Function|string, opts?: {read?: any, static?: boolean}): any;
new (selector: Type<any>|Function|string, opts?: {read?: any, static?: boolean}): ViewChild;
}
/**