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

This reverts commit 25219baeb4ae037527fc367f37ff6453e352d4a1.

PR Close #32965
This commit is contained in:
atscott 2019-10-02 10:20:01 -07:00
parent 39e8ceb2cd
commit 879ad69602
3 changed files with 15 additions and 15 deletions

View File

@ -29,7 +29,7 @@ export interface Query {
read: any; read: any;
isViewQuery: boolean; isViewQuery: boolean;
selector: any; selector: any;
static?: boolean; static: boolean;
} }
export const createContentChildren = makeMetadataFactory<Query>( export const createContentChildren = makeMetadataFactory<Query>(

View File

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

View File

@ -177,13 +177,13 @@ export interface ConstructorSansProvider {
export declare type ContentChild = Query; export declare type ContentChild = Query;
export interface ContentChildDecorator { export interface ContentChildDecorator {
(selector: Type<any> | Function | string, opts?: { (selector: Type<any> | Function | string, opts: {
read?: any; read?: any;
static?: boolean; static: boolean;
}): any; }): any;
new (selector: Type<any> | Function | string, opts?: { new (selector: Type<any> | Function | string, opts: {
read?: any; read?: any;
static?: boolean; static: boolean;
}): ContentChild; }): ContentChild;
} }
@ -1151,7 +1151,7 @@ export interface Query {
isViewQuery: boolean; isViewQuery: boolean;
read: any; read: any;
selector: any; selector: any;
static?: boolean; static: boolean;
} }
export declare abstract class Query { export declare abstract class Query {
@ -1445,13 +1445,13 @@ export declare const VERSION: Version;
export declare type ViewChild = Query; export declare type ViewChild = Query;
export interface ViewChildDecorator { export interface ViewChildDecorator {
(selector: Type<any> | Function | string, opts?: { (selector: Type<any> | Function | string, opts: {
read?: any; read?: any;
static?: boolean; static: boolean;
}): any; }): any;
new (selector: Type<any> | Function | string, opts?: { new (selector: Type<any> | Function | string, opts: {
read?: any; read?: any;
static?: boolean; static: boolean;
}): ViewChild; }): ViewChild;
} }