Last active
August 29, 2015 14:23
-
-
Save lacolaco/9d2437f4cebfea1f61c6 to your computer and use it in GitHub Desktop.
Polymerのproperties、これinterfaceどう定義すればいいの
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
properties = { | |
prop1: String, | |
prop2: { | |
type: Number | |
} | |
}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
interface PolymerElement { | |
properties?: {[propName:string]:BooleanConstructor|DateConstructor|NumberConstructor|StringConstructor|ArrayConstructor|PolymerElementProperty}; | |
} | |
interface PolymerElementProperty { | |
// Type constructor for the property | |
type: BooleanConstructor|DateConstructor|NumberConstructor|StringConstructor|ArrayConstructor; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment