mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
docs: Add callout about the Component interface.
(cherry picked from commit e01573fbca)
This commit is contained in:
committed by
Leon Senft
parent
9182b62b96
commit
831746eff1
@@ -404,6 +404,9 @@ export interface ComponentDecorator {
|
||||
* life-cycle hooks. For more information, see the
|
||||
* [Lifecycle Hooks](guide/components/lifecycle) guide.
|
||||
*
|
||||
* HELPFUL: You may not use this interface to describe a class that is a component. Decorators do not affect the typing of the decorated classes.
|
||||
* Use `Type<unknown>` instead of `Type<Component>`.
|
||||
*
|
||||
* @usageNotes
|
||||
*
|
||||
* ### Setting component inputs
|
||||
|
||||
Reference in New Issue
Block a user