Allow polymer properties to be objects

This commit is contained in:
Lucas Dixon
2016-01-22 22:48:09 -05:00
parent a9680ac2ef
commit 128875c022
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;