docs(core): export the ...Decorator interfaces to ensure they are documented (#28836)
				
					
				
			If an interface is not exported publicly from its package, then the doc-gen does not see it, and so cannot include it in the generated documentation. This was the case for a number of `...Decorator` interfaces, such as `PipeDecorator` and `InputDecorator. This commit adds these interfaces to the public export to fix this problem. PR Close #28836
This commit is contained in:
		
							parent
							
								
									350802b207
								
							
						
					
					
						commit
						f79cd5963e
					
				| @ -21,7 +21,7 @@ import {ViewEncapsulation} from './metadata/view'; | ||||
| export {Attribute} from './di'; | ||||
| export {AfterContentChecked, AfterContentInit, AfterViewChecked, AfterViewInit, DoCheck, OnChanges, OnDestroy, OnInit} from './interface/lifecycle_hooks'; | ||||
| export {ANALYZE_FOR_ENTRY_COMPONENTS, ContentChild, ContentChildDecorator, ContentChildren, ContentChildrenDecorator, Query, ViewChild, ViewChildDecorator, ViewChildren, ViewChildrenDecorator} from './metadata/di'; | ||||
| export {Component, ComponentDecorator, Directive, DirectiveDecorator, HostBinding, HostListener, Input, Output, Pipe} from './metadata/directives'; | ||||
| export {Component, ComponentDecorator, Directive, DirectiveDecorator, HostBinding, HostBindingDecorator, HostListener, HostListenerDecorator, Input, InputDecorator, Output, OutputDecorator, Pipe, PipeDecorator} from './metadata/directives'; | ||||
| export {DoBootstrap, ModuleWithProviders, NgModule} from './metadata/ng_module'; | ||||
| export {CUSTOM_ELEMENTS_SCHEMA, NO_ERRORS_SCHEMA, SchemaMetadata} from './metadata/schema'; | ||||
| export {ViewEncapsulation} from './metadata/view'; | ||||
|  | ||||
							
								
								
									
										25
									
								
								tools/public_api_guard/core/core.d.ts
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										25
									
								
								tools/public_api_guard/core/core.d.ts
									
									
									
									
										vendored
									
									
								
							| @ -359,6 +359,11 @@ export interface HostBinding { | ||||
| 
 | ||||
| export declare const HostBinding: HostBindingDecorator; | ||||
| 
 | ||||
| export interface HostBindingDecorator { | ||||
|     (hostPropertyName?: string): any; | ||||
|     new (hostPropertyName?: string): any; | ||||
| } | ||||
| 
 | ||||
| export interface HostDecorator { | ||||
|     (): any; | ||||
|     new (): Host; | ||||
| @ -371,6 +376,11 @@ export interface HostListener { | ||||
| 
 | ||||
| export declare const HostListener: HostListenerDecorator; | ||||
| 
 | ||||
| export interface HostListenerDecorator { | ||||
|     (eventName: string, args?: string[]): any; | ||||
|     new (eventName: string, args?: string[]): any; | ||||
| } | ||||
| 
 | ||||
| export declare function inject<T>(token: Type<T> | InjectionToken<T>): T; | ||||
| export declare function inject<T>(token: Type<T> | InjectionToken<T>, flags?: InjectFlags): T | null; | ||||
| 
 | ||||
| @ -452,6 +462,11 @@ export interface Input { | ||||
| 
 | ||||
| export declare const Input: InputDecorator; | ||||
| 
 | ||||
| export interface InputDecorator { | ||||
|     (bindingPropertyName?: string): any; | ||||
|     new (bindingPropertyName?: string): any; | ||||
| } | ||||
| 
 | ||||
| export declare function isDevMode(): boolean; | ||||
| 
 | ||||
| export interface IterableChangeRecord<V> { | ||||
| @ -632,6 +647,11 @@ export interface Output { | ||||
| 
 | ||||
| export declare const Output: OutputDecorator; | ||||
| 
 | ||||
| export interface OutputDecorator { | ||||
|     (bindingPropertyName?: string): any; | ||||
|     new (bindingPropertyName?: string): any; | ||||
| } | ||||
| 
 | ||||
| export declare const PACKAGE_ROOT_URL: InjectionToken<string>; | ||||
| 
 | ||||
| export interface Pipe { | ||||
| @ -641,6 +661,11 @@ export interface Pipe { | ||||
| 
 | ||||
| export declare const Pipe: PipeDecorator; | ||||
| 
 | ||||
| export interface PipeDecorator { | ||||
|     (obj: Pipe): TypeDecorator; | ||||
|     new (obj: Pipe): Pipe; | ||||
| } | ||||
| 
 | ||||
| export interface PipeTransform { | ||||
|     transform(value: any, ...args: any[]): any; | ||||
| } | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user