Skip to content

Commit

Permalink
Update types.
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinpschaaf committed Jun 21, 2018
1 parent 2214b9e commit 7fc9564
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 1 deletion.
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,7 +91,7 @@ declare namespace Polymer {
*
* @returns Generated class
*/
function Class(info: PolymerInit): {new(): HTMLElement};
function Class<T>(info: PolymerInit, mixin: (p0: T) => T): {new(): HTMLElement};
}

declare class PolymerGenerated {
Expand Down
27 changes: 27 additions & 0 deletions types/lib/legacy/legacy-data-mixin.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
/**
* DO NOT EDIT
*
* This file was automatically generated by
* https://github.com/Polymer/gen-typescript-declarations
*
* To modify these typings, edit the source file(s):
* lib/legacy/legacy-data-mixin.html
*/

/// <reference path="../utils/mixin.d.ts" />

declare class UndefinedArgumentError {
}

declare class LegacyDataMixin {

/**
* Overrides `Polyer.PropertyEffects` to wrap effect functions to
* catch `UndefinedArgumentError`s and warn.
*
* @param property Property that should trigger the effect
* @param type Effect type, from this.PROPERTY_EFFECT_TYPES
* @param effect Effect metadata object
*/
_addPropertyEffect(property: string, type: string, effect?: object|null): void;
}

0 comments on commit 7fc9564

Please sign in to comment.