Convert rest-client-behavior.js to .ts

This change shows how to import .js files from a .ts file.

Change-Id: I432c92fdb989f1f6e32ef95aa011c846ec2e9019
This commit is contained in:
Dmitrii Filippov
2020-06-22 18:02:01 +02:00
parent 3a1a1b5d5e
commit a8031cfe2a
6 changed files with 224 additions and 129 deletions

View File

@@ -0,0 +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.
*/
export type ChangeStatus = any;
export namespace ChangeStatus {
export const ABANDONED: string;
export const MERGED: string;
export const NEW: string;
}

View File

@@ -15,6 +15,8 @@
* limitations under the License.
*/
goog.declareModuleId('polygerrit.constants.constants');
/**
* @enum
* @desc Tab names for primary tabs on change view page.