Skip to content

Commit

Permalink
[code] fix additional type errors
Browse files Browse the repository at this point in the history
  • Loading branch information
zfy0701 committed Dec 19, 2018
1 parent 501e250 commit 15d1530
Show file tree
Hide file tree
Showing 12 changed files with 68 additions and 123 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@
"@types/redux": "^3.6.31",
"@types/redux-actions": "^2.2.1",
"@types/semver": "^5.5.0",
"@types/sinon": "^5.0.1",
"@types/sinon": "^7.0.0",
"@types/strip-ansi": "^3.0.0",
"@types/styled-components": "^3.0.1",
"@types/supertest": "^2.0.5",
Expand Down Expand Up @@ -382,7 +382,7 @@
"proxyquire": "1.7.11",
"regenerate": "^1.4.0",
"simple-git": "1.37.0",
"sinon": "v7.2.2",
"sinon": "^7.2.2",
"strip-ansi": "^3.0.1",
"supertest": "^3.1.0",
"supertest-as-promised": "^4.0.2",
Expand Down
2 changes: 1 addition & 1 deletion packages/kbn-ui-framework/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
"redux": "3.7.2",
"redux-thunk": "2.2.0",
"sass-loader": "^7.1.0",
"sinon": "^5.0.7",
"sinon": "^7.2.2",
"style-loader": "^0.23.1",
"webpack": "^4.23.1",
"webpack-dev-server": "^3.1.10",
Expand Down
2 changes: 1 addition & 1 deletion x-pack/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@
"run-sequence": "^2.2.1",
"sass-loader": "^7.1.0",
"simple-git": "1.37.0",
"sinon": "^5.0.7",
"sinon": "^7.2.2",
"supertest": "^3.1.0",
"supertest-as-promised": "^4.0.2",
"tmp": "0.0.31",
Expand Down
5 changes: 0 additions & 5 deletions x-pack/plugins/code/.gitignore

This file was deleted.

4 changes: 4 additions & 0 deletions x-pack/plugins/code/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -106,10 +106,14 @@ export const code = (kibana: any) =>
const socketService = new SocketService(server, log);

// Initialize search clients
// @ts-ignore
const repoSearchClient = new RepositorySearchClient(dataCluster.getClient(), log);
// @ts-ignore
const documentSearchClient = new DocumentSearchClient(dataCluster.getClient(), log);
// @ts-ignore
const symbolSearchClient = new SymbolSearchClient(dataCluster.getClient(), log);

// @ts-ignore
const esClient: EsClient = adminCluster.getClient();

const installManager = new InstallManager(serverOptions);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,7 @@ exports[`render correctly 1`] = `
className="euiIcon euiIcon--medium euiSideNav__mobileIcon"
focusable="false"
height="16"
style={
Object {
"fill": undefined,
}
}
style={null}
viewBox="0 0 16 16"
width="16"
xmlns="http://www.w3.org/2000/svg"
Expand Down Expand Up @@ -81,16 +77,13 @@ exports[`render correctly 1`] = `
<div
className="fileNode"
onClick={[Function]}
role="button"
>
<svg
className="euiIcon euiIcon--medium"
focusable="false"
height="16"
style={
Object {
"fill": undefined,
}
}
style={null}
viewBox="0 0 16 16"
width="16"
xmlns="http://www.w3.org/2000/svg"
Expand All @@ -117,16 +110,13 @@ exports[`render correctly 1`] = `
<div
className="fileNode"
onClick={[Function]}
role="button"
>
<svg
className="euiIcon euiIcon--medium"
focusable="false"
height="16"
style={
Object {
"fill": undefined,
}
}
style={null}
viewBox="0 0 16 16"
width="16"
xmlns="http://www.w3.org/2000/svg"
Expand All @@ -153,16 +143,13 @@ exports[`render correctly 1`] = `
<div
className="fileNode"
onClick={[Function]}
role="button"
>
<svg
className="euiIcon euiIcon--medium"
focusable="false"
height="16"
style={
Object {
"fill": undefined,
}
}
style={null}
viewBox="0 0 16 16"
width="16"
xmlns="http://www.w3.org/2000/svg"
Expand Down Expand Up @@ -190,16 +177,13 @@ exports[`render correctly 1`] = `
<div
className="fileNode"
onClick={[Function]}
role="button"
>
<svg
className="euiIcon euiIcon--medium"
focusable="false"
height="16"
style={
Object {
"fill": undefined,
}
}
style={null}
viewBox="0 0 16 16"
width="16"
xmlns="http://www.w3.org/2000/svg"
Expand All @@ -226,6 +210,7 @@ exports[`render correctly 1`] = `
<div
className="fileNode"
onClick={[Function]}
role="button"
>
pom.xml
</div>
Expand All @@ -236,16 +221,13 @@ exports[`render correctly 1`] = `
<div
className="activeFileNode"
onClick={[Function]}
role="button"
>
<svg
className="euiIcon euiIcon--medium"
focusable="false"
height="16"
style={
Object {
"fill": undefined,
}
}
style={null}
viewBox="0 0 16 16"
width="16"
xmlns="http://www.w3.org/2000/svg"
Expand Down Expand Up @@ -273,16 +255,13 @@ exports[`render correctly 1`] = `
<div
className="fileNode"
onClick={[Function]}
role="button"
>
<svg
className="euiIcon euiIcon--medium"
focusable="false"
height="16"
style={
Object {
"fill": undefined,
}
}
style={null}
viewBox="0 0 16 16"
width="16"
xmlns="http://www.w3.org/2000/svg"
Expand All @@ -309,16 +288,13 @@ exports[`render correctly 1`] = `
<div
className="fileNode"
onClick={[Function]}
role="button"
>
<svg
className="euiIcon euiIcon--medium"
focusable="false"
height="16"
style={
Object {
"fill": undefined,
}
}
style={null}
viewBox="0 0 16 16"
width="16"
xmlns="http://www.w3.org/2000/svg"
Expand Down Expand Up @@ -349,6 +325,7 @@ exports[`render correctly 1`] = `
<div
className="fileNode"
onClick={[Function]}
role="button"
>
guava-bom/pom.xml
</div>
Expand All @@ -359,16 +336,13 @@ exports[`render correctly 1`] = `
<div
className="fileNode"
onClick={[Function]}
role="button"
>
<svg
className="euiIcon euiIcon--medium"
focusable="false"
height="16"
style={
Object {
"fill": undefined,
}
}
style={null}
viewBox="0 0 16 16"
width="16"
xmlns="http://www.w3.org/2000/svg"
Expand All @@ -395,16 +369,13 @@ exports[`render correctly 1`] = `
<div
className="fileNode"
onClick={[Function]}
role="button"
>
<svg
className="euiIcon euiIcon--medium"
focusable="false"
height="16"
style={
Object {
"fill": undefined,
}
}
style={null}
viewBox="0 0 16 16"
width="16"
xmlns="http://www.w3.org/2000/svg"
Expand All @@ -431,16 +402,13 @@ exports[`render correctly 1`] = `
<div
className="fileNode"
onClick={[Function]}
role="button"
>
<svg
className="euiIcon euiIcon--medium"
focusable="false"
height="16"
style={
Object {
"fill": undefined,
}
}
style={null}
viewBox="0 0 16 16"
width="16"
xmlns="http://www.w3.org/2000/svg"
Expand All @@ -467,16 +435,13 @@ exports[`render correctly 1`] = `
<div
className="fileNode"
onClick={[Function]}
role="button"
>
<svg
className="euiIcon euiIcon--medium"
focusable="false"
height="16"
style={
Object {
"fill": undefined,
}
}
style={null}
viewBox="0 0 16 16"
width="16"
xmlns="http://www.w3.org/2000/svg"
Expand All @@ -503,16 +468,13 @@ exports[`render correctly 1`] = `
<div
className="fileNode"
onClick={[Function]}
role="button"
>
<svg
className="euiIcon euiIcon--medium"
focusable="false"
height="16"
style={
Object {
"fill": undefined,
}
}
style={null}
viewBox="0 0 16 16"
width="16"
xmlns="http://www.w3.org/2000/svg"
Expand All @@ -539,6 +501,7 @@ exports[`render correctly 1`] = `
<div
className="fileNode"
onClick={[Function]}
role="button"
>
.gitattributes
</div>
Expand All @@ -549,6 +512,7 @@ exports[`render correctly 1`] = `
<div
className="fileNode"
onClick={[Function]}
role="button"
>
.gitignore
</div>
Expand All @@ -559,6 +523,7 @@ exports[`render correctly 1`] = `
<div
className="fileNode"
onClick={[Function]}
role="button"
>
.travis.yml
</div>
Expand All @@ -569,6 +534,7 @@ exports[`render correctly 1`] = `
<div
className="fileNode"
onClick={[Function]}
role="button"
>
CONTRIBUTING.md
</div>
Expand All @@ -579,6 +545,7 @@ exports[`render correctly 1`] = `
<div
className="fileNode"
onClick={[Function]}
role="button"
>
CONTRIBUTORS
</div>
Expand All @@ -589,6 +556,7 @@ exports[`render correctly 1`] = `
<div
className="fileNode"
onClick={[Function]}
role="button"
>
COPYING
</div>
Expand All @@ -599,6 +567,7 @@ exports[`render correctly 1`] = `
<div
className="fileNode"
onClick={[Function]}
role="button"
>
README.md
</div>
Expand All @@ -609,6 +578,7 @@ exports[`render correctly 1`] = `
<div
className="fileNode"
onClick={[Function]}
role="button"
>
cycle_whitelist.txt
</div>
Expand All @@ -619,6 +589,7 @@ exports[`render correctly 1`] = `
<div
className="fileNode"
onClick={[Function]}
role="button"
>
javadoc-stylesheet.css
</div>
Expand All @@ -629,6 +600,7 @@ exports[`render correctly 1`] = `
<div
className="fileNode"
onClick={[Function]}
role="button"
>
pom.xml
</div>
Expand Down
Loading

0 comments on commit 15d1530

Please sign in to comment.