From 5fa059fa7cf8844d204eddc61e68b594ae9b3b82 Mon Sep 17 00:00:00 2001 From: Tim van der Lippe Date: Fri, 2 Feb 2018 13:11:03 +0100 Subject: [PATCH] Update types --- types/lib/elements/array-selector.d.ts | 50 +++++++++++++++----------- 1 file changed, 30 insertions(+), 20 deletions(-) diff --git a/types/lib/elements/array-selector.d.ts b/types/lib/elements/array-selector.d.ts index f9e6c440b4..8a009f1248 100644 --- a/types/lib/elements/array-selector.d.ts +++ b/types/lib/elements/array-selector.d.ts @@ -143,19 +143,23 @@ declare namespace Polymer { * * @@ -163,20 +167,26 @@ declare namespace Polymer { * ``` * * ```js - * Polymer({ - * is: 'employee-list', - * ready() { - * this.employees = [ - * {first: 'Bob', last: 'Smith'}, - * {first: 'Sally', last: 'Johnson'}, - * ... - * ]; - * }, - * toggleSelection(e) { - * let item = this.$.employeeList.itemForElement(e.target); - * this.$.selector.select(item); - * } - * }); + * class EmployeeList extends Polymer.Element { + * static get is() { return 'employee-list'; } + * static get properties() { + * return { + * employees: { + * value() { + * return [ + * {first: 'Bob', last: 'Smith'}, + * {first: 'Sally', last: 'Johnson'}, + * ... + * ]; + * } + * } + * }; + * } + * toggleSelection(e) { + * let item = this.$.employeeList.itemForElement(e.target); + * this.$.selector.select(item); + * } + * } * ``` */ class ArraySelector extends