提交 648694c9 编写于 作者: B bryk

Type changes to make frontend work with new compiler

This is because new compiler version has new type inference, which is
more strict.
上级 ad616575
......@@ -33,6 +33,14 @@ const backendApi = {};
*/
backendApi.PortMapping;
/**
* @typedef {{
* key: string,
* value: string
* }}
*/
backendApi.Label;
/**
* @typedef {{
* containerImage: string,
......@@ -42,9 +50,9 @@ backendApi.PortMapping;
* name: string,
* description: ?string,
* portMappings: !Array<!backendApi.PortMapping>,
* labels: !Array<!backendApi.Label>,
* replicas: number,
* namespace: string,
* labels: !Array<!backendApi.Label>
* namespace: string
* }}
*/
backendApi.AppDeploymentSpec;
......@@ -151,14 +159,6 @@ backendApi.NamespaceSpec;
*/
backendApi.NamespaceList;
/**
* @typedef {{
* key: string,
* value: string
* }}
*/
backendApi.Label;
/**
* @typedef {{
* name: string,
......
......@@ -88,11 +88,17 @@ export default class DeployFromSettingsController {
*/
this.namespaces;
/**
* Initialized from the scope.
* @export {string}
*/
this.name;
/**
* Currently chosen namespace.
* @export {(string|undefined)}
* @export {string}
*/
this.namespace = this.namespaces.length > 0 ? this.namespaces[0] : undefined;
this.namespace = this.namespaces[0];
/** @private {!angular.$q} */
this.q_ = $q;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册