diff options
Diffstat (limited to 'polygerrit-ui/app/elements/plugins/gr-endpoint-slot/gr-endpoint-slot.ts')
-rw-r--r-- | polygerrit-ui/app/elements/plugins/gr-endpoint-slot/gr-endpoint-slot.ts | 29 |
1 files changed, 12 insertions, 17 deletions
diff --git a/polygerrit-ui/app/elements/plugins/gr-endpoint-slot/gr-endpoint-slot.ts b/polygerrit-ui/app/elements/plugins/gr-endpoint-slot/gr-endpoint-slot.ts index 4999716425..d6d1866cea 100644 --- a/polygerrit-ui/app/elements/plugins/gr-endpoint-slot/gr-endpoint-slot.ts +++ b/polygerrit-ui/app/elements/plugins/gr-endpoint-slot/gr-endpoint-slot.ts @@ -1,28 +1,23 @@ /** * @license - * Copyright (C) 2020 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * Copyright 2020 Google LLC + * SPDX-License-Identifier: Apache-2.0 */ -import {PolymerElement} from '@polymer/polymer/polymer-element'; -import {customElement, property} from '@polymer/decorators'; +import {LitElement} from 'lit'; +import {customElement, property} from 'lit/decorators'; + +declare global { + interface HTMLElementTagNameMap { + 'gr-endpoint-slot': GrEndpointSlot; + } +} /** * `gr-endpoint-slot` is used when need control over where * the registered element should appear inside of the endpoint. */ @customElement('gr-endpoint-slot') -export class GrEndpointSlot extends PolymerElement { +export class GrEndpointSlot extends LitElement { @property({type: String}) name!: string; } @@ -34,6 +29,6 @@ export class GrEndpointSlot extends PolymerElement { * This should help catch errors when you assign an element without * name to GrEndpointSlot type. */ -export interface GrEndpointSlot extends PolymerElement { +export interface GrEndpointSlot extends LitElement { name: string; } |