提交 c0769afc 编写于 作者: B bryk

JS compiler fixes after new compiler release

上级 185a7d0b
......@@ -88,8 +88,6 @@ gulp.task('scripts:prod', ['angular-templates'], function() {
jscomp_error: '*',
// Disable checks that are not applicable to the project.
jscomp_off: [
// This check does not work correctly with ES6.
'inferredConstCheck',
// Let ESLint handle all lint checks.
'lintChecks',
// This checks aren't working with current google-closure-library version. Will be deleted
......
......@@ -37,7 +37,7 @@ export default class LabelsController {
/**
* Returns true if element at index position should be visible.
*
* @param index
* @param {number} index
* @return {boolean}
* @export
*/
......
......@@ -32,7 +32,7 @@ export default class SparklineController {
/**
* Formats the underlying series suitable for display as an SVG polygon.
* @return string
* @return {string}
* @export
*/
polygonPoints() {
......
......@@ -26,9 +26,9 @@ export class StateParams {
* @param {string} namespace
* @param {string} replicationController
* @param {string} podId
* @param {string=} [container]
* @param {string=} opt_container
*/
constructor(namespace, replicationController, podId, container) {
constructor(namespace, replicationController, podId, opt_container) {
/** @export {string} Namespace of this Replication Controller. */
this.namespace = namespace;
......@@ -39,6 +39,6 @@ export class StateParams {
this.podId = podId;
/** @export {string|undefined} Name of this pod container. */
this.container = container;
this.container = opt_container;
}
}
......@@ -24,7 +24,7 @@ export const stateName = `${replicationcontrollers}.zero`;
*/
export class StateParams {
/**
* @param containsOnlyKubeSystemRCs
* @param {boolean} containsOnlyKubeSystemRCs
*/
constructor(containsOnlyKubeSystemRCs) {
/** @type {boolean} whether there are only RCs in namespace "kube-system" */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册