Skip to content

Commit 75cfcb8

Browse files
committed
Update types.
1 parent 509b73f commit 75cfcb8

1 file changed

Lines changed: 26 additions & 1 deletion

File tree

types/lib/legacy/legacy-data-mixin.d.ts

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,9 @@
99
*/
1010

1111
/// <reference path="class.d.ts" />
12-
/// <reference path="../polymer.d.ts" />
12+
/// <reference path="../../polymer.d.ts" />
1313
/// <reference path="../utils/mixin.d.ts" />
14+
/// <reference path="../utils/templatize.d.ts" />
1415

1516
declare class UndefinedArgumentError extends Error {
1617
constructor(message: any, arg: any);
@@ -50,6 +51,7 @@ declare namespace Polymer {
5051
}
5152

5253
interface LegacyDataMixin {
54+
readonly _legacyUndefinedCheck: any;
5355

5456
/**
5557
* Overrides `Polyer.PropertyEffects` to wrap effect functions to
@@ -62,3 +64,26 @@ declare namespace Polymer {
6264
_addPropertyEffect(property: string, type: string, effect?: object|null): void;
6365
}
6466
}
67+
68+
declare class LegacyDataMixin extends superClass {
69+
70+
/**
71+
* Overrides `Polyer.PropertyEffects` to wrap effect functions to
72+
* catch `UndefinedArgumentError`s and warn.
73+
*
74+
* @param templateInfo Template metadata to add effect to
75+
* @param prop Property that should trigger the effect
76+
* @param effect Effect metadata object
77+
*/
78+
static _addTemplatePropertyEffect(templateInfo: object|null, prop: string, effect?: object|null): void;
79+
80+
/**
81+
* Overrides `Polyer.PropertyEffects` to wrap effect functions to
82+
* catch `UndefinedArgumentError`s and warn.
83+
*
84+
* @param property Property that should trigger the effect
85+
* @param type Effect type, from this.PROPERTY_EFFECT_TYPES
86+
* @param effect Effect metadata object
87+
*/
88+
_addPropertyEffect(property: string, type: string, effect?: object|null): void;
89+
}

0 commit comments

Comments
 (0)