Skip to content

Commit

Permalink
Update types.
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinpschaaf committed Oct 31, 2018
1 parent 509b73f commit 75cfcb8
Showing 1 changed file with 26 additions and 1 deletion.
27 changes: 26 additions & 1 deletion types/lib/legacy/legacy-data-mixin.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,9 @@
*/

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

declare class UndefinedArgumentError extends Error {
constructor(message: any, arg: any);
Expand Down Expand Up @@ -50,6 +51,7 @@ declare namespace Polymer {
}

interface LegacyDataMixin {
readonly _legacyUndefinedCheck: any;

/**
* Overrides `Polyer.PropertyEffects` to wrap effect functions to
Expand All @@ -62,3 +64,26 @@ declare namespace Polymer {
_addPropertyEffect(property: string, type: string, effect?: object|null): void;
}
}

declare class LegacyDataMixin extends superClass {

/**
* Overrides `Polyer.PropertyEffects` to wrap effect functions to
* catch `UndefinedArgumentError`s and warn.
*
* @param templateInfo Template metadata to add effect to
* @param prop Property that should trigger the effect
* @param effect Effect metadata object
*/
static _addTemplatePropertyEffect(templateInfo: object|null, prop: string, effect?: object|null): void;

/**
* 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 75cfcb8

Please sign in to comment.