Skip to content

Commit

Permalink
update more types
Browse files Browse the repository at this point in the history
  • Loading branch information
Steven Orvell committed Nov 1, 2018
1 parent fe1bcd1 commit 8d9219f
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 8 deletions.
2 changes: 1 addition & 1 deletion types/lib/legacy/class.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,5 +91,5 @@ declare namespace Polymer {
*
* @returns Generated class
*/
function Class(info: PolymerInit): {new(): HTMLElement};
function Class(info: PolymerInit, mixin: (p0: T|null) => T|null): {new(): HTMLElement};
}
1 change: 1 addition & 0 deletions types/lib/legacy/legacy-element-mixin.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ declare namespace Polymer {

interface LegacyElementMixinConstructor {
new(...args: any[]): LegacyElementMixin;
_finalizeClass(): void;
}

interface LegacyElementMixin extends Polymer.ElementMixin, Polymer.PropertyEffects, Polymer.TemplateStamp, Polymer.PropertyAccessors, Polymer.PropertiesChanged, Polymer.PropertiesMixin, Polymer.GestureEventListeners {
Expand Down
7 changes: 0 additions & 7 deletions types/lib/mixins/element-mixin.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -223,11 +223,4 @@ declare namespace Polymer {
*/
resolveUrl(url: string, base?: string): string;
}

/**
* Provides basic tracking of element definitions (registrations) and
* instance counts.
*/
namespace telemetry {
}
}
7 changes: 7 additions & 0 deletions types/lib/utils/boot.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,11 @@
* own custom HTML elements.
*/
declare namespace Polymer {

/**
* Provides basic tracking of element definitions (registrations) and
* instance counts.
*/
namespace telemetry {
}
}
7 changes: 7 additions & 0 deletions types/lib/utils/settings.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,11 @@ declare namespace Polymer {
* Sets `passiveTouchGestures` globally for all elements using Polymer Gestures.
*/
function setPassiveTouchGestures(usePassive: boolean): void;


/**
* Sets `legacyOptimizations` globally for all elements. Enables
* optimizations when only legacy Polymer() style elements are used.
*/
function setLegacyOptimizations(useLegacyOptimizations: boolean): void;
}

0 comments on commit 8d9219f

Please sign in to comment.