Add interface for GrPageNav to support dotted access

Change-Id: I2df1bedda61ee0d4a50fc7585b2f4022bd0e41b8
This commit is contained in:
Tao Zhou
2020-08-06 14:53:19 +02:00
parent 6271fe8a7f
commit 317b194e1d

View File

@@ -21,6 +21,18 @@ import {PolymerElement} from '@polymer/polymer/polymer-element';
import {htmlTemplate} from './gr-page-nav_html';
import {customElement, property} from '@polymer/decorators';
/**
* Augment the interface on top of PolymerElement
* for gr-page-nav.
*/
export interface GrPageNav {
$: {
// Note: this is needed to access $.nav
// with dotted property access
nav: HTMLElement;
};
}
@customElement('gr-page-nav')
export class GrPageNav extends GestureEventListeners(
LegacyElementMixin(PolymerElement)