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:
23
polygerrit-ui/app/constants/constants.d.ts
vendored
Normal file
23
polygerrit-ui/app/constants/constants.d.ts
vendored
Normal 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;
|
||||
}
|
||||
@@ -15,6 +15,8 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
goog.declareModuleId('polygerrit.constants.constants');
|
||||
|
||||
/**
|
||||
* @enum
|
||||
* @desc Tab names for primary tabs on change view page.
|
||||
|
||||
Reference in New Issue
Block a user