diff --git a/goldens/public-api/core/core.d.ts b/goldens/public-api/core/core.d.ts index 5bdc411fbb..3048dddf4d 100644 --- a/goldens/public-api/core/core.d.ts +++ b/goldens/public-api/core/core.d.ts @@ -671,192 +671,18 @@ export declare interface OutputDecorator { new (bindingPropertyName?: string): any; } -export declare function ɵɵadvance(delta: number): void; - -export declare function ɵɵattribute(name: string, value: any, sanitizer?: SanitizerFn | null, namespace?: string): typeof ɵɵattribute; - -export declare function ɵɵattributeInterpolate1(attrName: string, prefix: string, v0: any, suffix: string, sanitizer?: SanitizerFn, namespace?: string): typeof ɵɵattributeInterpolate1; - -export declare function ɵɵattributeInterpolate2(attrName: string, prefix: string, v0: any, i0: string, v1: any, suffix: string, sanitizer?: SanitizerFn, namespace?: string): typeof ɵɵattributeInterpolate2; - -export declare function ɵɵattributeInterpolate3(attrName: string, prefix: string, v0: any, i0: string, v1: any, i1: string, v2: any, suffix: string, sanitizer?: SanitizerFn, namespace?: string): typeof ɵɵattributeInterpolate3; - -export declare function ɵɵattributeInterpolate4(attrName: string, prefix: string, v0: any, i0: string, v1: any, i1: string, v2: any, i2: string, v3: any, suffix: string, sanitizer?: SanitizerFn, namespace?: string): typeof ɵɵattributeInterpolate4; - -export declare function ɵɵattributeInterpolate5(attrName: string, prefix: string, v0: any, i0: string, v1: any, i1: string, v2: any, i2: string, v3: any, i3: string, v4: any, suffix: string, sanitizer?: SanitizerFn, namespace?: string): typeof ɵɵattributeInterpolate5; - -export declare function ɵɵattributeInterpolate6(attrName: string, prefix: string, v0: any, i0: string, v1: any, i1: string, v2: any, i2: string, v3: any, i3: string, v4: any, i4: string, v5: any, suffix: string, sanitizer?: SanitizerFn, namespace?: string): typeof ɵɵattributeInterpolate6; - -export declare function ɵɵattributeInterpolate7(attrName: string, prefix: string, v0: any, i0: string, v1: any, i1: string, v2: any, i2: string, v3: any, i3: string, v4: any, i4: string, v5: any, i5: string, v6: any, suffix: string, sanitizer?: SanitizerFn, namespace?: string): typeof ɵɵattributeInterpolate7; - -export declare function ɵɵattributeInterpolate8(attrName: string, prefix: string, v0: any, i0: string, v1: any, i1: string, v2: any, i2: string, v3: any, i3: string, v4: any, i4: string, v5: any, i5: string, v6: any, i6: string, v7: any, suffix: string, sanitizer?: SanitizerFn, namespace?: string): typeof ɵɵattributeInterpolate8; - -export declare function ɵɵattributeInterpolateV(attrName: string, values: any[], sanitizer?: SanitizerFn, namespace?: string): typeof ɵɵattributeInterpolateV; - -export declare function ɵɵclassMap(classes: { - [className: string]: boolean | undefined | null; -} | string | undefined | null): void; - -export declare function ɵɵclassMapInterpolate1(prefix: string, v0: any, suffix: string): void; - -export declare function ɵɵclassMapInterpolate2(prefix: string, v0: any, i0: string, v1: any, suffix: string): void; - -export declare function ɵɵclassMapInterpolate3(prefix: string, v0: any, i0: string, v1: any, i1: string, v2: any, suffix: string): void; - -export declare function ɵɵclassMapInterpolate4(prefix: string, v0: any, i0: string, v1: any, i1: string, v2: any, i2: string, v3: any, suffix: string): void; - -export declare function ɵɵclassMapInterpolate5(prefix: string, v0: any, i0: string, v1: any, i1: string, v2: any, i2: string, v3: any, i3: string, v4: any, suffix: string): void; - -export declare function ɵɵclassMapInterpolate6(prefix: string, v0: any, i0: string, v1: any, i1: string, v2: any, i2: string, v3: any, i3: string, v4: any, i4: string, v5: any, suffix: string): void; - -export declare function ɵɵclassMapInterpolate7(prefix: string, v0: any, i0: string, v1: any, i1: string, v2: any, i2: string, v3: any, i3: string, v4: any, i4: string, v5: any, i5: string, v6: any, suffix: string): void; - -export declare function ɵɵclassMapInterpolate8(prefix: string, v0: any, i0: string, v1: any, i1: string, v2: any, i2: string, v3: any, i3: string, v4: any, i4: string, v5: any, i5: string, v6: any, i6: string, v7: any, suffix: string): void; - -export declare function ɵɵclassMapInterpolateV(values: any[]): void; - -export declare function ɵɵclassProp(className: string, value: boolean | undefined | null): typeof ɵɵclassProp; - -export declare type ɵɵComponentDefWithMeta = ɵComponentDef; - -export declare function ɵɵcontentQuery(directiveIndex: number, predicate: Type | InjectionToken | string[], descend: boolean, read?: any): void; - -export declare function ɵɵCopyDefinitionFeature(definition: ɵDirectiveDef | ɵComponentDef): void; - -export declare function ɵɵdefineComponent(componentDefinition: { - type: Type; - selectors?: ɵCssSelectorList; - decls: number; - vars: number; - inputs?: { - [P in keyof T]?: string | [string, string]; - }; - outputs?: { - [P in keyof T]?: string; - }; - hostBindings?: HostBindingsFunction; - hostVars?: number; - hostAttrs?: TAttributes; - contentQueries?: ContentQueriesFunction; - exportAs?: string[]; - template: ComponentTemplate; - consts?: TConstants; - ngContentSelectors?: string[]; - viewQuery?: ViewQueriesFunction | null; - features?: ComponentDefFeature[]; - encapsulation?: ViewEncapsulation; - data?: { - [kind: string]: any; - }; - styles?: string[]; - changeDetection?: ChangeDetectionStrategy; - directives?: DirectiveTypesOrFactory | null; - pipes?: PipeTypesOrFactory | null; - schemas?: SchemaMetadata[] | null; -}): never; - -export declare const ɵɵdefineDirective: (directiveDefinition: { - type: Type; - selectors?: ɵCssSelectorList | undefined; - inputs?: { [P in keyof T]?: string | [string, string] | undefined; } | undefined; - outputs?: { [P_1 in keyof T]?: string | undefined; } | undefined; - features?: DirectiveDefFeature[] | undefined; - hostBindings?: HostBindingsFunction | undefined; - hostVars?: number | undefined; - hostAttrs?: TAttributes | undefined; - contentQueries?: ContentQueriesFunction | undefined; - viewQuery?: ViewQueriesFunction | null | undefined; - exportAs?: string[] | undefined; -}) => never; - +/** @codeGenApi */ export declare function ɵɵdefineInjectable(opts: { token: unknown; providedIn?: Type | 'root' | 'platform' | 'any' | null; factory: () => T; }): never; -export declare function ɵɵdefineInjector(options: { - factory: () => any; - providers?: any[]; - imports?: any[]; -}): never; - -export declare function ɵɵdefineNgModule(def: { - type: T; - bootstrap?: Type[] | (() => Type[]); - declarations?: Type[] | (() => Type[]); - imports?: Type[] | (() => Type[]); - exports?: Type[] | (() => Type[]); - schemas?: SchemaMetadata[] | null; - id?: string | null; -}): never; - -export declare function ɵɵdefinePipe(pipeDef: { - name: string; - type: Type; - pure?: boolean; -}): never; - -export declare type ɵɵDirectiveDefWithMeta = ɵDirectiveDef; - -export declare function ɵɵdirectiveInject(token: Type | InjectionToken): T; -export declare function ɵɵdirectiveInject(token: Type | InjectionToken, flags: InjectFlags): T; - -export declare function ɵɵdisableBindings(): void; - -export declare function ɵɵelement(index: number, name: string, attrsIndex?: number | null, localRefsIndex?: number): void; - -export declare function ɵɵelementContainer(index: number, attrsIndex?: number | null, localRefsIndex?: number): void; - -export declare function ɵɵelementContainerEnd(): void; - -export declare function ɵɵelementContainerStart(index: number, attrsIndex?: number | null, localRefsIndex?: number): void; - -export declare function ɵɵelementEnd(): void; - -export declare function ɵɵelementStart(index: number, name: string, attrsIndex?: number | null, localRefsIndex?: number): void; - -export declare function ɵɵenableBindings(): void; - -export declare type ɵɵFactoryDef = () => T; - -export declare function ɵɵgetCurrentView(): OpaqueViewState; - -export declare function ɵɵgetFactoryOf(type: Type): FactoryFn | null; - -export declare function ɵɵgetInheritedFactory(type: Type): (type: Type) => T; - -export declare function ɵɵhostProperty(propName: string, value: T, sanitizer?: SanitizerFn | null): typeof ɵɵhostProperty; - -export declare function ɵɵi18n(index: number, message: string, subTemplateIndex?: number): void; - -export declare function ɵɵi18nApply(index: number): void; - -export declare function ɵɵi18nAttributes(index: number, values: string[]): void; - -export declare function ɵɵi18nEnd(): void; - -export declare function ɵɵi18nExp(value: T): typeof ɵɵi18nExp; - -export declare function ɵɵi18nPostprocess(message: string, replacements?: { - [key: string]: (string | string[]); -}): string; - -export declare function ɵɵi18nStart(index: number, message: string, subTemplateIndex?: number): void; - -export declare function ɵɵInheritDefinitionFeature(definition: ɵDirectiveDef | ɵComponentDef): void; - +/** @codeGenApi */ export declare function ɵɵinject(token: Type | InjectionToken): T; export declare function ɵɵinject(token: Type | InjectionToken, flags?: InjectFlags): T | null; +/** @codeGenApi */ export declare interface ɵɵInjectableDef { factory: (t?: Type) => T; providedIn: InjectorType | 'root' | 'platform' | 'any' | null; @@ -864,226 +690,12 @@ export declare interface ɵɵInjectableDef { value: T | undefined; } +/** @codeGenApi */ export declare function ɵɵinjectAttribute(attrNameToInject: string): string | null; -export declare interface ɵɵInjectorDef { - factory: () => T; - imports: (InjectorType | InjectorTypeWithProviders)[]; - providers: (Type | ValueProvider | ExistingProvider | FactoryProvider | ConstructorProvider | StaticClassProvider | ClassProvider | any[])[]; -} - +/** @codeGenApi */ export declare function ɵɵinjectPipeChangeDetectorRef(flags?: InjectFlags): ChangeDetectorRef | null; -export declare function ɵɵinvalidFactory(): never; - -export declare function ɵɵinvalidFactoryDep(index: number): never; - -export declare function ɵɵlistener(eventName: string, listenerFn: (e?: any) => any, useCapture?: boolean, eventTargetResolver?: GlobalTargetResolver): typeof ɵɵlistener; - -export declare function ɵɵloadQuery(): QueryList; - -export declare function ɵɵnamespaceHTML(): void; - -export declare function ɵɵnamespaceMathML(): void; - -export declare function ɵɵnamespaceSVG(): void; - -export declare function ɵɵnextContext(level?: number): T; - -export declare type ɵɵNgModuleDefWithMeta = ɵNgModuleDef; - -export declare function ɵɵNgOnChangesFeature(): DirectiveDefFeature; - -export declare function ɵɵpipe(index: number, pipeName: string): any; - -export declare function ɵɵpipeBind1(index: number, slotOffset: number, v1: any): any; - -export declare function ɵɵpipeBind2(index: number, slotOffset: number, v1: any, v2: any): any; - -export declare function ɵɵpipeBind3(index: number, slotOffset: number, v1: any, v2: any, v3: any): any; - -export declare function ɵɵpipeBind4(index: number, slotOffset: number, v1: any, v2: any, v3: any, v4: any): any; - -export declare function ɵɵpipeBindV(index: number, slotOffset: number, values: [any, ...any[]]): any; - -export declare type ɵɵPipeDefWithMeta = ɵPipeDef; - -export declare function ɵɵprojection(nodeIndex: number, selectorIndex?: number, attrs?: TAttributes): void; - -export declare function ɵɵprojectionDef(projectionSlots?: ProjectionSlots): void; - -export declare function ɵɵproperty(propName: string, value: T, sanitizer?: SanitizerFn | null): typeof ɵɵproperty; - -export declare function ɵɵpropertyInterpolate(propName: string, v0: any, sanitizer?: SanitizerFn): typeof ɵɵpropertyInterpolate; - -export declare function ɵɵpropertyInterpolate1(propName: string, prefix: string, v0: any, suffix: string, sanitizer?: SanitizerFn): typeof ɵɵpropertyInterpolate1; - -export declare function ɵɵpropertyInterpolate2(propName: string, prefix: string, v0: any, i0: string, v1: any, suffix: string, sanitizer?: SanitizerFn): typeof ɵɵpropertyInterpolate2; - -export declare function ɵɵpropertyInterpolate3(propName: string, prefix: string, v0: any, i0: string, v1: any, i1: string, v2: any, suffix: string, sanitizer?: SanitizerFn): typeof ɵɵpropertyInterpolate3; - -export declare function ɵɵpropertyInterpolate4(propName: string, prefix: string, v0: any, i0: string, v1: any, i1: string, v2: any, i2: string, v3: any, suffix: string, sanitizer?: SanitizerFn): typeof ɵɵpropertyInterpolate4; - -export declare function ɵɵpropertyInterpolate5(propName: string, prefix: string, v0: any, i0: string, v1: any, i1: string, v2: any, i2: string, v3: any, i3: string, v4: any, suffix: string, sanitizer?: SanitizerFn): typeof ɵɵpropertyInterpolate5; - -export declare function ɵɵpropertyInterpolate6(propName: string, prefix: string, v0: any, i0: string, v1: any, i1: string, v2: any, i2: string, v3: any, i3: string, v4: any, i4: string, v5: any, suffix: string, sanitizer?: SanitizerFn): typeof ɵɵpropertyInterpolate6; - -export declare function ɵɵpropertyInterpolate7(propName: string, prefix: string, v0: any, i0: string, v1: any, i1: string, v2: any, i2: string, v3: any, i3: string, v4: any, i4: string, v5: any, i5: string, v6: any, suffix: string, sanitizer?: SanitizerFn): typeof ɵɵpropertyInterpolate7; - -export declare function ɵɵpropertyInterpolate8(propName: string, prefix: string, v0: any, i0: string, v1: any, i1: string, v2: any, i2: string, v3: any, i3: string, v4: any, i4: string, v5: any, i5: string, v6: any, i6: string, v7: any, suffix: string, sanitizer?: SanitizerFn): typeof ɵɵpropertyInterpolate8; - -export declare function ɵɵpropertyInterpolateV(propName: string, values: any[], sanitizer?: SanitizerFn): typeof ɵɵpropertyInterpolateV; - -export declare function ɵɵProvidersFeature(providers: Provider[], viewProviders?: Provider[]): (definition: ɵDirectiveDef) => void; - -export declare function ɵɵpureFunction0(slotOffset: number, pureFn: () => T, thisArg?: any): T; - -export declare function ɵɵpureFunction1(slotOffset: number, pureFn: (v: any) => any, exp: any, thisArg?: any): any; - -export declare function ɵɵpureFunction2(slotOffset: number, pureFn: (v1: any, v2: any) => any, exp1: any, exp2: any, thisArg?: any): any; - -export declare function ɵɵpureFunction3(slotOffset: number, pureFn: (v1: any, v2: any, v3: any) => any, exp1: any, exp2: any, exp3: any, thisArg?: any): any; - -export declare function ɵɵpureFunction4(slotOffset: number, pureFn: (v1: any, v2: any, v3: any, v4: any) => any, exp1: any, exp2: any, exp3: any, exp4: any, thisArg?: any): any; - -export declare function ɵɵpureFunction5(slotOffset: number, pureFn: (v1: any, v2: any, v3: any, v4: any, v5: any) => any, exp1: any, exp2: any, exp3: any, exp4: any, exp5: any, thisArg?: any): any; - -export declare function ɵɵpureFunction6(slotOffset: number, pureFn: (v1: any, v2: any, v3: any, v4: any, v5: any, v6: any) => any, exp1: any, exp2: any, exp3: any, exp4: any, exp5: any, exp6: any, thisArg?: any): any; - -export declare function ɵɵpureFunction7(slotOffset: number, pureFn: (v1: any, v2: any, v3: any, v4: any, v5: any, v6: any, v7: any) => any, exp1: any, exp2: any, exp3: any, exp4: any, exp5: any, exp6: any, exp7: any, thisArg?: any): any; - -export declare function ɵɵpureFunction8(slotOffset: number, pureFn: (v1: any, v2: any, v3: any, v4: any, v5: any, v6: any, v7: any, v8: any) => any, exp1: any, exp2: any, exp3: any, exp4: any, exp5: any, exp6: any, exp7: any, exp8: any, thisArg?: any): any; - -export declare function ɵɵpureFunctionV(slotOffset: number, pureFn: (...v: any[]) => any, exps: any[], thisArg?: any): any; - -export declare function ɵɵqueryRefresh(queryList: QueryList): boolean; - -export declare function ɵɵreference(index: number): T; - -export declare function ɵɵresolveBody(element: RElement & { - ownerDocument: Document; -}): { - name: string; - target: HTMLElement; -}; - -export declare function ɵɵresolveDocument(element: RElement & { - ownerDocument: Document; -}): { - name: string; - target: Document; -}; - -export declare function ɵɵresolveWindow(element: RElement & { - ownerDocument: Document; -}): { - name: string; - target: (Window & typeof globalThis) | null; -}; - -export declare function ɵɵrestoreView(viewToRestore: OpaqueViewState): void; - -export declare function ɵɵsanitizeHtml(unsafeHtml: any): string; - -export declare function ɵɵsanitizeResourceUrl(unsafeResourceUrl: any): string; - -export declare function ɵɵsanitizeScript(unsafeScript: any): string; - -export declare function ɵɵsanitizeStyle(unsafeStyle: any): string; - -export declare function ɵɵsanitizeUrl(unsafeUrl: any): string; - -export declare function ɵɵsanitizeUrlOrResourceUrl(unsafeUrl: any, tag: string, prop: string): any; - -/** @deprecated */ -export declare function ɵɵselect(index: number): void; - -export declare function ɵɵsetComponentScope(type: ɵComponentType, directives: Type[], pipes: Type[]): void; - -export declare function ɵɵsetNgModuleScope(type: any, scope: { - declarations?: Type[] | (() => Type[]); - imports?: Type[] | (() => Type[]); - exports?: Type[] | (() => Type[]); -}): void; - -export declare function ɵɵstaticContentQuery(directiveIndex: number, predicate: Type | InjectionToken | string[], descend: boolean, read?: any): void; - -export declare function ɵɵstaticViewQuery(predicate: Type | InjectionToken | string[], descend: boolean, read?: any): void; - -export declare function ɵɵstyleMap(styles: { - [styleName: string]: any; -} | string | undefined | null): void; - -export declare function ɵɵstyleMapInterpolate1(prefix: string, v0: any, suffix: string): void; - -export declare function ɵɵstyleMapInterpolate2(prefix: string, v0: any, i0: string, v1: any, suffix: string): void; - -export declare function ɵɵstyleMapInterpolate3(prefix: string, v0: any, i0: string, v1: any, i1: string, v2: any, suffix: string): void; - -export declare function ɵɵstyleMapInterpolate4(prefix: string, v0: any, i0: string, v1: any, i1: string, v2: any, i2: string, v3: any, suffix: string): void; - -export declare function ɵɵstyleMapInterpolate5(prefix: string, v0: any, i0: string, v1: any, i1: string, v2: any, i2: string, v3: any, i3: string, v4: any, suffix: string): void; - -export declare function ɵɵstyleMapInterpolate6(prefix: string, v0: any, i0: string, v1: any, i1: string, v2: any, i2: string, v3: any, i3: string, v4: any, i4: string, v5: any, suffix: string): void; - -export declare function ɵɵstyleMapInterpolate7(prefix: string, v0: any, i0: string, v1: any, i1: string, v2: any, i2: string, v3: any, i3: string, v4: any, i4: string, v5: any, i5: string, v6: any, suffix: string): void; - -export declare function ɵɵstyleMapInterpolate8(prefix: string, v0: any, i0: string, v1: any, i1: string, v2: any, i2: string, v3: any, i3: string, v4: any, i4: string, v5: any, i5: string, v6: any, i6: string, v7: any, suffix: string): void; - -export declare function ɵɵstyleMapInterpolateV(values: any[]): void; - -export declare function ɵɵstyleProp(prop: string, value: string | number | ɵSafeValue | undefined | null, suffix?: string | null): typeof ɵɵstyleProp; - -export declare function ɵɵstylePropInterpolate1(prop: string, prefix: string, v0: any, suffix: string, valueSuffix?: string | null): typeof ɵɵstylePropInterpolate1; - -export declare function ɵɵstylePropInterpolate2(prop: string, prefix: string, v0: any, i0: string, v1: any, suffix: string, valueSuffix?: string | null): typeof ɵɵstylePropInterpolate2; - -export declare function ɵɵstylePropInterpolate3(prop: string, prefix: string, v0: any, i0: string, v1: any, i1: string, v2: any, suffix: string, valueSuffix?: string | null): typeof ɵɵstylePropInterpolate3; - -export declare function ɵɵstylePropInterpolate4(prop: string, prefix: string, v0: any, i0: string, v1: any, i1: string, v2: any, i2: string, v3: any, suffix: string, valueSuffix?: string | null): typeof ɵɵstylePropInterpolate4; - -export declare function ɵɵstylePropInterpolate5(prop: string, prefix: string, v0: any, i0: string, v1: any, i1: string, v2: any, i2: string, v3: any, i3: string, v4: any, suffix: string, valueSuffix?: string | null): typeof ɵɵstylePropInterpolate5; - -export declare function ɵɵstylePropInterpolate6(prop: string, prefix: string, v0: any, i0: string, v1: any, i1: string, v2: any, i2: string, v3: any, i3: string, v4: any, i4: string, v5: any, suffix: string, valueSuffix?: string | null): typeof ɵɵstylePropInterpolate6; - -export declare function ɵɵstylePropInterpolate7(prop: string, prefix: string, v0: any, i0: string, v1: any, i1: string, v2: any, i2: string, v3: any, i3: string, v4: any, i4: string, v5: any, i5: string, v6: any, suffix: string, valueSuffix?: string | null): typeof ɵɵstylePropInterpolate7; - -export declare function ɵɵstylePropInterpolate8(prop: string, prefix: string, v0: any, i0: string, v1: any, i1: string, v2: any, i2: string, v3: any, i3: string, v4: any, i4: string, v5: any, i5: string, v6: any, i6: string, v7: any, suffix: string, valueSuffix?: string | null): typeof ɵɵstylePropInterpolate8; - -export declare function ɵɵstylePropInterpolateV(prop: string, values: any[], valueSuffix?: string | null): typeof ɵɵstylePropInterpolateV; - -export declare function ɵɵsyntheticHostListener(eventName: string, listenerFn: (e?: any) => any, useCapture?: boolean, eventTargetResolver?: GlobalTargetResolver): typeof ɵɵsyntheticHostListener; - -export declare function ɵɵsyntheticHostProperty(propName: string, value: T | ɵNO_CHANGE, sanitizer?: SanitizerFn | null): typeof ɵɵsyntheticHostProperty; - -export declare function ɵɵtemplate(index: number, templateFn: ComponentTemplate | null, decls: number, vars: number, tagName?: string | null, attrsIndex?: number | null, localRefsIndex?: number | null, localRefExtractor?: LocalRefExtractor): void; - -export declare function ɵɵtemplateRefExtractor(tNode: TNode, currentView: ɵangular_packages_core_core_bp): TemplateRef | null; - -export declare function ɵɵtext(index: number, value?: string): void; - -export declare function ɵɵtextInterpolate(v0: any): typeof ɵɵtextInterpolate; - -export declare function ɵɵtextInterpolate1(prefix: string, v0: any, suffix: string): typeof ɵɵtextInterpolate1; - -export declare function ɵɵtextInterpolate2(prefix: string, v0: any, i0: string, v1: any, suffix: string): typeof ɵɵtextInterpolate2; - -export declare function ɵɵtextInterpolate3(prefix: string, v0: any, i0: string, v1: any, i1: string, v2: any, suffix: string): typeof ɵɵtextInterpolate3; - -export declare function ɵɵtextInterpolate4(prefix: string, v0: any, i0: string, v1: any, i1: string, v2: any, i2: string, v3: any, suffix: string): typeof ɵɵtextInterpolate4; - -export declare function ɵɵtextInterpolate5(prefix: string, v0: any, i0: string, v1: any, i1: string, v2: any, i2: string, v3: any, i3: string, v4: any, suffix: string): typeof ɵɵtextInterpolate5; - -export declare function ɵɵtextInterpolate6(prefix: string, v0: any, i0: string, v1: any, i1: string, v2: any, i2: string, v3: any, i3: string, v4: any, i4: string, v5: any, suffix: string): typeof ɵɵtextInterpolate6; - -export declare function ɵɵtextInterpolate7(prefix: string, v0: any, i0: string, v1: any, i1: string, v2: any, i2: string, v3: any, i3: string, v4: any, i4: string, v5: any, i5: string, v6: any, suffix: string): typeof ɵɵtextInterpolate7; - -export declare function ɵɵtextInterpolate8(prefix: string, v0: any, i0: string, v1: any, i1: string, v2: any, i2: string, v3: any, i3: string, v4: any, i4: string, v5: any, i5: string, v6: any, i6: string, v7: any, suffix: string): typeof ɵɵtextInterpolate8; - -export declare function ɵɵtextInterpolateV(values: any[]): typeof ɵɵtextInterpolateV; - -export declare function ɵɵviewQuery(predicate: Type | InjectionToken | string[], descend: boolean, read?: any): void; - export declare const PACKAGE_ROOT_URL: InjectionToken; export declare interface Pipe { diff --git a/packages/core/src/di/interface/defs.ts b/packages/core/src/di/interface/defs.ts index 8dba1ec240..56865380f3 100644 --- a/packages/core/src/di/interface/defs.ts +++ b/packages/core/src/di/interface/defs.ts @@ -23,7 +23,8 @@ import {ClassProvider, ConstructorProvider, ExistingProvider, FactoryProvider, S * that the injectable does not belong to any scope. * * @codeGenApi - * @publicApi This instruction has been emitted by ViewEngine for some time and is deployed to npm. + * @publicApi The ViewEngine compiler emits code with this type for injectables. This code is + * deployed to npm, and should be treated as public api. */ export interface ɵɵInjectableDef { diff --git a/tools/ts-api-guardian/index.bzl b/tools/ts-api-guardian/index.bzl index 0b6a8a40e0..422ac5a043 100644 --- a/tools/ts-api-guardian/index.bzl +++ b/tools/ts-api-guardian/index.bzl @@ -24,7 +24,7 @@ def ts_api_guardian_test( golden, actual, data = [], - strip_export_pattern = ["^__", "^ɵ[^ɵ]"], + strip_export_pattern = [], allow_module_identifiers = COMMON_MODULE_IDENTIFIERS, use_angular_tag_rules = True, **kwargs): @@ -49,8 +49,9 @@ def ts_api_guardian_test( ] for i in strip_export_pattern: - # The below replacement is needed because under Windows '^' needs to be escaped twice - args += ["--stripExportPattern", i.replace("^", "^^^^")] + # Quote the regexp before passing it via the command line. + quoted_pattern = "\"%s\"" % i + args += ["--stripExportPattern", quoted_pattern] for i in allow_module_identifiers: args += ["--allowModuleIdentifiers", i] @@ -82,7 +83,7 @@ def ts_api_guardian_test_npm_package( goldenDir, actualDir, data = [], - strip_export_pattern = ["^__", "^ɵ[^ɵ]"], + strip_export_pattern = ["^ɵ(?!ɵdefineInjectable|ɵinject|ɵInjectableDef)"], allow_module_identifiers = COMMON_MODULE_IDENTIFIERS, use_angular_tag_rules = True, **kwargs): @@ -109,8 +110,9 @@ def ts_api_guardian_test_npm_package( ] for i in strip_export_pattern: - # The below replacement is needed because under Windows '^' needs to be escaped twice - args += ["--stripExportPattern", i.replace("^", "^^^^")] + # Quote the regexp before passing it via the command line. + quoted_pattern = "\"%s\"" % i + args += ["--stripExportPattern", quoted_pattern] for i in allow_module_identifiers: args += ["--allowModuleIdentifiers", i] diff --git a/tools/ts-api-guardian/lib/cli.ts b/tools/ts-api-guardian/lib/cli.ts index e2a2f5d338..98581b3f46 100644 --- a/tools/ts-api-guardian/lib/cli.ts +++ b/tools/ts-api-guardian/lib/cli.ts @@ -47,7 +47,7 @@ export function startCli() { options.exportTags = { requireAtLeastOne: ['publicApi', 'codeGenApi'], banned: ['experimental'], - toCopy: ['deprecated'] + toCopy: ['deprecated', 'codeGenApi'] }; options.memberTags = { requireAtLeastOne: [],