Skip to content

Instantly share code, notes, and snippets.

@lacolaco
Last active August 29, 2015 14:23
Show Gist options
  • Save lacolaco/9d2437f4cebfea1f61c6 to your computer and use it in GitHub Desktop.
Save lacolaco/9d2437f4cebfea1f61c6 to your computer and use it in GitHub Desktop.
Polymerのproperties、これinterfaceどう定義すればいいの
properties = {
prop1: String,
prop2: {
type: Number
}
};
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