Merge pull request #7742 from iislucas/iislucas

Allow polymer properties to be objects
This commit is contained in:
Masahiro Wakame
2016-01-25 12:10:10 +09:00
2 changed files with 7 additions and 3 deletions

View File

@@ -12,7 +12,11 @@ Polymer({
reflectToAttribute: true,
notify: true,
computed: "__prop2()"
}
},
prop3: {
type: Object,
value: { "foo": "bar" },
},
},
hostAttributes: {

View File

@@ -1,4 +1,4 @@
// Type definitions for polymer v1.1.5
// Type definitions for polymer v1.1.6
// Project: https://github.com/Polymer/polymer
// Definitions by: Louis Grignon <https://github.com/lgrignon>, Suguru Inatomi <https://github.com/laco0416>
// Definitions: https://github.com/borisyankov/DefinitelyTyped
@@ -11,7 +11,7 @@ declare module polymer {
interface PropObjectType {
type: PropConstructorType;
value?: boolean | number | string | Function;
value?: boolean | number | string | Function | Object;
reflectToAttribute?: boolean;
readOnly?: boolean;
notify?: boolean;