From 7cc4e18aed4fa4c3594e9774401b27754a28dbc5 Mon Sep 17 00:00:00 2001 From: Chris Krycho Date: Mon, 23 Sep 2019 11:33:52 -0600 Subject: [PATCH] Ember Component: update summary docstring (#38500) The current docstring on `@ember/component`'s type definition is far out of date; update it to match the current text in Ember's docs. --- types/ember__component/index.d.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/types/ember__component/index.d.ts b/types/ember__component/index.d.ts index afc1914648..b853dea3ce 100644 --- a/types/ember__component/index.d.ts +++ b/types/ember__component/index.d.ts @@ -17,9 +17,9 @@ interface TemplateFactory { } /** - * A view that is completely isolated. Property access in its templates go to the view object - * and actions are targeted at the view object. There is no access to the surrounding context or - * outer controller; all contextual information is passed in. + * A component is an isolated piece of UI, represented by a template and an + * optional class. When a component has a class, its template's `this` value + * is an instance of the component class. */ export default class Component extends CoreView.extend( ViewMixin,