Skip to content

Commit cbe9fc1

Browse files
ricticcopybara-github
authored andcommitted
Gotta give explicit type annotations for @soyTemplate methods.
PiperOrigin-RevId: 345489974
1 parent 1663d7e commit cbe9fc1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/textarea/mwc-textarea-base.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ limitations under the License.
1616
*/
1717

1818
import {TextAreaCharCounter, TextFieldBase, TextFieldInputMode, TextFieldType} from '@material/mwc-textfield/mwc-textfield-base';
19-
import {ComplexAttributeConverter, html, property, query} from 'lit-element';
19+
import {ComplexAttributeConverter, html, property, query, TemplateResult} from 'lit-element';
2020
import {classMap} from 'lit-html/directives/class-map';
2121
import {ifDefined} from 'lit-html/directives/if-defined';
2222
import {live} from 'lit-html/directives/live';
@@ -54,7 +54,7 @@ export abstract class TextAreaBase extends TextFieldBase {
5454
charCounter: boolean|TextAreaCharCounter = false;
5555

5656
/** @soyTemplate */
57-
render() {
57+
render(): TemplateResult {
5858
const shouldRenderCharCounter = this.charCounter && this.maxLength !== -1;
5959
const shouldRenderInternalCharCounter =
6060
shouldRenderCharCounter && this.charCounter === 'internal';
@@ -89,7 +89,7 @@ export abstract class TextAreaBase extends TextFieldBase {
8989
}
9090

9191
/** @soyTemplate */
92-
protected renderInput() {
92+
protected renderInput(): TemplateResult {
9393
const minOrUndef = this.minLength === -1 ? undefined : this.minLength;
9494
const maxOrUndef = this.maxLength === -1 ? undefined : this.maxLength;
9595
const autocapitalizeOrUndef = this.autocapitalize ?

0 commit comments

Comments
 (0)