Skip to content

Commit bb61a20

Browse files
committed
Update types
1 parent 8e1b3f4 commit bb61a20

2 files changed

Lines changed: 24 additions & 22 deletions

File tree

types/lib/elements/custom-style.d.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,12 @@ declare namespace Polymer {
3434
*
3535
* For example:
3636
*
37-
* ```
37+
* ```html
3838
* <!-- import apply shim--only required if using mixins -->
39-
* <link rel="import href="bower_components/shadycss/apply-shim.html">
39+
* <link rel="import" href="bower_components/shadycss/apply-shim.html">
4040
* <!-- import custom-style element -->
4141
* <link rel="import" href="bower_components/polymer/lib/elements/custom-style.html">
42-
* ...
42+
*
4343
* <custom-style>
4444
* <style>
4545
* html {

types/lib/elements/dom-repeat.d.ts

Lines changed: 21 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -41,28 +41,30 @@ declare namespace Polymer {
4141
*
4242
* </template>
4343
*
44-
* <script>
45-
* class EmployeeList extends Polymer.Element {
46-
* static get is() { return 'employee-list'; }
47-
* static get properties() {
48-
* return {
49-
* employees: {
50-
* value() {
51-
* return [
52-
* {first: 'Bob', last: 'Smith'},
53-
* {first: 'Sally', last: 'Johnson'},
54-
* ...
55-
* ];
56-
* }
57-
* }
58-
* };
59-
* }
60-
* }
61-
* < /script>
62-
*
6344
* </dom-module>
6445
* ```
6546
*
47+
* With the following custom element definition:
48+
*
49+
* ```js
50+
* class EmployeeList extends Polymer.Element {
51+
* static get is() { return 'employee-list'; }
52+
* static get properties() {
53+
* return {
54+
* employees: {
55+
* value() {
56+
* return [
57+
* {first: 'Bob', last: 'Smith'},
58+
* {first: 'Sally', last: 'Johnson'},
59+
* ...
60+
* ];
61+
* }
62+
* }
63+
* };
64+
* }
65+
* }
66+
* ```
67+
*
6668
* Notifications for changes to items sub-properties will be forwarded to template
6769
* instances, which will update via the normal structured data notification system.
6870
*

0 commit comments

Comments
 (0)