From 879ad6960258e9f8b2202c40e2b0439956a30db5 Mon Sep 17 00:00:00 2001 From: atscott Date: Wed, 2 Oct 2019 10:20:01 -0700 Subject: [PATCH] Revert "feat(core): make static query flag optional (#32686)" (#32965) This reverts commit 25219baeb4ae037527fc367f37ff6453e352d4a1. PR Close #32965 --- packages/compiler/src/core.ts | 2 +- packages/core/src/metadata/di.ts | 10 +++++----- tools/public_api_guard/core/core.d.ts | 18 +++++++++--------- 3 files changed, 15 insertions(+), 15 deletions(-) diff --git a/packages/compiler/src/core.ts b/packages/compiler/src/core.ts index a9fdbb39d0..f228d6ead0 100644 --- a/packages/compiler/src/core.ts +++ b/packages/compiler/src/core.ts @@ -29,7 +29,7 @@ export interface Query { read: any; isViewQuery: boolean; selector: any; - static?: boolean; + static: boolean; } export const createContentChildren = makeMetadataFactory( diff --git a/packages/core/src/metadata/di.ts b/packages/core/src/metadata/di.ts index b82ff87fb6..f3fc53925b 100644 --- a/packages/core/src/metadata/di.ts +++ b/packages/core/src/metadata/di.ts @@ -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|Function|string, opts?: {read?: any, static?: boolean}): any; - new (selector: Type|Function|string, opts?: {read?: any, static?: boolean}): ContentChild; + (selector: Type|Function|string, opts: {read?: any, static: boolean}): any; + new (selector: Type|Function|string, opts: {read?: any, static: boolean}): ContentChild; } /** @@ -348,8 +348,8 @@ export interface ViewChildDecorator { * * @Annotation */ - (selector: Type|Function|string, opts?: {read?: any, static?: boolean}): any; - new (selector: Type|Function|string, opts?: {read?: any, static?: boolean}): ViewChild; + (selector: Type|Function|string, opts: {read?: any, static: boolean}): any; + new (selector: Type|Function|string, opts: {read?: any, static: boolean}): ViewChild; } /** diff --git a/tools/public_api_guard/core/core.d.ts b/tools/public_api_guard/core/core.d.ts index f8558d5dc3..70919a41bc 100644 --- a/tools/public_api_guard/core/core.d.ts +++ b/tools/public_api_guard/core/core.d.ts @@ -177,13 +177,13 @@ export interface ConstructorSansProvider { export declare type ContentChild = Query; export interface ContentChildDecorator { - (selector: Type | Function | string, opts?: { + (selector: Type | Function | string, opts: { read?: any; - static?: boolean; + static: boolean; }): any; - new (selector: Type | Function | string, opts?: { + new (selector: Type | Function | string, opts: { read?: any; - static?: boolean; + static: boolean; }): ContentChild; } @@ -1151,7 +1151,7 @@ export interface Query { isViewQuery: boolean; read: any; selector: any; - static?: boolean; + static: boolean; } export declare abstract class Query { @@ -1445,13 +1445,13 @@ export declare const VERSION: Version; export declare type ViewChild = Query; export interface ViewChildDecorator { - (selector: Type | Function | string, opts?: { + (selector: Type | Function | string, opts: { read?: any; - static?: boolean; + static: boolean; }): any; - new (selector: Type | Function | string, opts?: { + new (selector: Type | Function | string, opts: { read?: any; - static?: boolean; + static: boolean; }): ViewChild; }