From 7fc9564e5e23aaed7e23941523c2c03cf2cdacc0 Mon Sep 17 00:00:00 2001 From: Kevin Schaaf Date: Wed, 20 Jun 2018 17:58:51 -0700 Subject: [PATCH] Update types. --- types/lib/legacy/class.d.ts | 2 +- types/lib/legacy/legacy-data-mixin.d.ts | 27 +++++++++++++++++++++++++ 2 files changed, 28 insertions(+), 1 deletion(-) create mode 100644 types/lib/legacy/legacy-data-mixin.d.ts diff --git a/types/lib/legacy/class.d.ts b/types/lib/legacy/class.d.ts index df52a92a2b..973b1d01ba 100644 --- a/types/lib/legacy/class.d.ts +++ b/types/lib/legacy/class.d.ts @@ -91,7 +91,7 @@ declare namespace Polymer { * * @returns Generated class */ - function Class(info: PolymerInit): {new(): HTMLElement}; + function Class(info: PolymerInit, mixin: (p0: T) => T): {new(): HTMLElement}; } declare class PolymerGenerated { diff --git a/types/lib/legacy/legacy-data-mixin.d.ts b/types/lib/legacy/legacy-data-mixin.d.ts new file mode 100644 index 0000000000..372b9b0420 --- /dev/null +++ b/types/lib/legacy/legacy-data-mixin.d.ts @@ -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 + */ + +/// + +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; +}