docs: Add callout about the Component interface.

(cherry picked from commit e01573fbca)
This commit is contained in:
Matthieu Riegler 2026-03-19 01:10:26 +01:00 committed by Leon Senft
parent 9182b62b96
commit 831746eff1

View file

@ -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