mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-24 05:06:02 +08:00
Allow polymer properties to be objects
This commit is contained in:
@@ -12,7 +12,11 @@ Polymer({
|
||||
reflectToAttribute: true,
|
||||
notify: true,
|
||||
computed: "__prop2()"
|
||||
}
|
||||
},
|
||||
prop3: {
|
||||
type: Object,
|
||||
value: { "foo": "bar" },
|
||||
},
|
||||
},
|
||||
|
||||
hostAttributes: {
|
||||
|
||||
4
polymer/polymer.d.ts
vendored
4
polymer/polymer.d.ts
vendored
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user