diff --git a/examples/alerting_example/package.json b/examples/alerting_example/package.json
index 96187d847c1c41..5cb0249a3bd457 100644
--- a/examples/alerting_example/package.json
+++ b/examples/alerting_example/package.json
@@ -12,6 +12,6 @@
"build": "rm -rf './target' && tsc"
},
"devDependencies": {
- "typescript": "3.7.2"
+ "typescript": "3.8.3"
}
}
diff --git a/examples/bfetch_explorer/package.json b/examples/bfetch_explorer/package.json
index ea5a1b1848613b..b15a0b3b6ada33 100644
--- a/examples/bfetch_explorer/package.json
+++ b/examples/bfetch_explorer/package.json
@@ -12,6 +12,6 @@
"build": "rm -rf './target' && tsc"
},
"devDependencies": {
- "typescript": "3.7.2"
+ "typescript": "3.8.3"
}
}
diff --git a/examples/demo_search/package.json b/examples/demo_search/package.json
index d29ad55b32db2d..befd3b7e703fa6 100644
--- a/examples/demo_search/package.json
+++ b/examples/demo_search/package.json
@@ -12,6 +12,6 @@
"build": "rm -rf './target' && tsc"
},
"devDependencies": {
- "typescript": "3.7.2"
+ "typescript": "3.8.3"
}
}
diff --git a/examples/embeddable_examples/package.json b/examples/embeddable_examples/package.json
index 055ee6d7315123..c7cf18e4f84c15 100644
--- a/examples/embeddable_examples/package.json
+++ b/examples/embeddable_examples/package.json
@@ -12,6 +12,6 @@
"build": "rm -rf './target' && tsc"
},
"devDependencies": {
- "typescript": "3.7.2"
+ "typescript": "3.8.3"
}
}
diff --git a/examples/embeddable_explorer/package.json b/examples/embeddable_explorer/package.json
index 771c5c9be9c06e..54608a7b3b63cb 100644
--- a/examples/embeddable_explorer/package.json
+++ b/examples/embeddable_explorer/package.json
@@ -12,6 +12,6 @@
"build": "rm -rf './target' && tsc"
},
"devDependencies": {
- "typescript": "3.7.2"
+ "typescript": "3.8.3"
}
}
diff --git a/examples/search_explorer/package.json b/examples/search_explorer/package.json
index f3c71c5d181f8d..d1842dacca3dd6 100644
--- a/examples/search_explorer/package.json
+++ b/examples/search_explorer/package.json
@@ -12,6 +12,6 @@
"build": "rm -rf './target' && tsc"
},
"devDependencies": {
- "typescript": "3.7.2"
+ "typescript": "3.8.3"
}
}
diff --git a/examples/state_containers_examples/package.json b/examples/state_containers_examples/package.json
index b309494a366628..db9b2dc094c675 100644
--- a/examples/state_containers_examples/package.json
+++ b/examples/state_containers_examples/package.json
@@ -12,6 +12,6 @@
"build": "rm -rf './target' && tsc"
},
"devDependencies": {
- "typescript": "3.7.2"
+ "typescript": "3.8.3"
}
}
diff --git a/examples/ui_action_examples/package.json b/examples/ui_action_examples/package.json
index fbede6b4dbad7d..83143a8c06c62f 100644
--- a/examples/ui_action_examples/package.json
+++ b/examples/ui_action_examples/package.json
@@ -12,6 +12,6 @@
"build": "rm -rf './target' && tsc"
},
"devDependencies": {
- "typescript": "3.7.2"
+ "typescript": "3.8.3"
}
}
diff --git a/examples/ui_actions_explorer/package.json b/examples/ui_actions_explorer/package.json
index 1758471ced483a..3554ba664ebd4e 100644
--- a/examples/ui_actions_explorer/package.json
+++ b/examples/ui_actions_explorer/package.json
@@ -12,6 +12,6 @@
"build": "rm -rf './target' && tsc"
},
"devDependencies": {
- "typescript": "3.7.2"
+ "typescript": "3.8.3"
}
}
diff --git a/examples/url_generators_examples/package.json b/examples/url_generators_examples/package.json
index d3e8bd98aebf4c..6f7c04eda3d44e 100644
--- a/examples/url_generators_examples/package.json
+++ b/examples/url_generators_examples/package.json
@@ -12,6 +12,6 @@
"build": "rm -rf './target' && tsc"
},
"devDependencies": {
- "typescript": "3.7.2"
+ "typescript": "3.8.3"
}
}
diff --git a/examples/url_generators_explorer/package.json b/examples/url_generators_explorer/package.json
index f472ba1d08506a..345b912d32415b 100644
--- a/examples/url_generators_explorer/package.json
+++ b/examples/url_generators_explorer/package.json
@@ -12,6 +12,6 @@
"build": "rm -rf './target' && tsc"
},
"devDependencies": {
- "typescript": "3.7.2"
+ "typescript": "3.8.3"
}
}
diff --git a/package.json b/package.json
index 3421bf938cd80d..2b3828c1639b74 100644
--- a/package.json
+++ b/package.json
@@ -83,7 +83,7 @@
"**/@types/hapi": "^17.0.18",
"**/@types/angular": "^1.6.56",
"**/@types/hoist-non-react-statics": "^3.3.1",
- "**/typescript": "3.7.2",
+ "**/typescript": "3.8.3",
"**/graphql-toolkit/lodash": "^4.17.13",
"**/hoist-non-react-statics": "^3.3.2",
"**/isomorphic-git/**/base64-js": "^1.2.1",
@@ -485,7 +485,7 @@
"supertest-as-promised": "^4.0.2",
"tape": "^4.13.0",
"tree-kill": "^1.2.2",
- "typescript": "3.7.2",
+ "typescript": "3.8.3",
"typings-tester": "^0.3.2",
"vinyl-fs": "^3.0.3",
"xml2js": "^0.4.22",
diff --git a/packages/kbn-analytics/package.json b/packages/kbn-analytics/package.json
index 9eefa16aaca017..437bead1b5ad82 100644
--- a/packages/kbn-analytics/package.json
+++ b/packages/kbn-analytics/package.json
@@ -17,6 +17,6 @@
"@babel/cli": "^7.5.5",
"@kbn/dev-utils": "1.0.0",
"@kbn/babel-preset": "1.0.0",
- "typescript": "3.7.2"
+ "typescript": "3.8.3"
}
}
diff --git a/packages/kbn-babel-preset/common_preset.js b/packages/kbn-babel-preset/common_preset.js
index ea099aeda74081..bbdd9381951840 100644
--- a/packages/kbn-babel-preset/common_preset.js
+++ b/packages/kbn-babel-preset/common_preset.js
@@ -28,6 +28,10 @@ const plugins = [
// See https://github.com/babel/proposals/issues/12 for progress
require.resolve('@babel/plugin-proposal-class-properties'),
+ // Proposal is on stage 4 (https://github.com/tc39/proposal-export-ns-from)
+ // Need this since we are using TypeScript 3.8+
+ require.resolve('@babel/plugin-proposal-export-namespace-from'),
+
// Optional Chaining proposal is stage 3 (https://github.com/tc39/proposal-optional-chaining)
// Need this since we are using TypeScript 3.7+
require.resolve('@babel/plugin-proposal-optional-chaining'),
diff --git a/packages/kbn-babel-preset/package.json b/packages/kbn-babel-preset/package.json
index 0acafbae59afd3..a070c2551f60aa 100644
--- a/packages/kbn-babel-preset/package.json
+++ b/packages/kbn-babel-preset/package.json
@@ -5,6 +5,7 @@
"license": "Apache-2.0",
"dependencies": {
"@babel/plugin-proposal-class-properties": "^7.5.1",
+ "@babel/plugin-proposal-export-namespace-from": "^7.8.3",
"@babel/plugin-proposal-nullish-coalescing-operator": "^7.4.4",
"@babel/plugin-proposal-optional-chaining": "^7.6.0",
"@babel/plugin-syntax-dynamic-import": "^7.2.0",
diff --git a/packages/kbn-config-schema/package.json b/packages/kbn-config-schema/package.json
index 71c0ae4bff1f9d..dbc90990b853e1 100644
--- a/packages/kbn-config-schema/package.json
+++ b/packages/kbn-config-schema/package.json
@@ -10,7 +10,7 @@
"kbn:bootstrap": "yarn build"
},
"devDependencies": {
- "typescript": "3.7.2"
+ "typescript": "3.8.3"
},
"peerDependencies": {
"joi": "^13.5.2",
diff --git a/packages/kbn-dev-utils/package.json b/packages/kbn-dev-utils/package.json
index ee9f349f490517..b4a4a56acd34c3 100644
--- a/packages/kbn-dev-utils/package.json
+++ b/packages/kbn-dev-utils/package.json
@@ -22,7 +22,7 @@
"tslib": "^1.9.3"
},
"devDependencies": {
- "typescript": "3.7.2",
+ "typescript": "3.8.3",
"@kbn/expect": "1.0.0",
"chance": "1.0.18"
}
diff --git a/packages/kbn-i18n/package.json b/packages/kbn-i18n/package.json
index bbc5126da1dce0..d8591e01963bd1 100644
--- a/packages/kbn-i18n/package.json
+++ b/packages/kbn-i18n/package.json
@@ -21,7 +21,7 @@
"del": "^5.1.0",
"getopts": "^2.2.4",
"supports-color": "^7.0.0",
- "typescript": "3.7.2"
+ "typescript": "3.8.3"
},
"dependencies": {
"intl-format-cache": "^2.1.0",
diff --git a/packages/kbn-pm/dist/index.js b/packages/kbn-pm/dist/index.js
index 62b12e8e38c875..2e2d263a958460 100644
--- a/packages/kbn-pm/dist/index.js
+++ b/packages/kbn-pm/dist/index.js
@@ -40038,9 +40038,9 @@ function getFlags(argv, options) {
}
exports.getFlags = getFlags;
function getHelp(options) {
- var _a, _b;
+ var _a;
const usage = options.usage || `node ${path_1.relative(process.cwd(), process.argv[1])}`;
- const optionHelp = (dedent_1.default(((_b = (_a = options) === null || _a === void 0 ? void 0 : _a.flags) === null || _b === void 0 ? void 0 : _b.help) || '') +
+ const optionHelp = (dedent_1.default(((_a = options === null || options === void 0 ? void 0 : options.flags) === null || _a === void 0 ? void 0 : _a.help) || '') +
'\n' +
dedent_1.default `
--verbose, -v Log verbosely
@@ -40443,7 +40443,7 @@ class KbnClientRequester {
const url = url_1.default.resolve(this.pickUrl(), options.path);
const description = options.description || `${options.method} ${url}`;
let attempt = 0;
- const maxAttempts = (_a = options.retries, (_a !== null && _a !== void 0 ? _a : DEFAULT_MAX_ATTEMPTS));
+ const maxAttempts = (_a = options.retries) !== null && _a !== void 0 ? _a : DEFAULT_MAX_ATTEMPTS;
while (true) {
attempt += 1;
try {
diff --git a/packages/kbn-pm/package.json b/packages/kbn-pm/package.json
index a236db9eee18af..11823d9f60d4e8 100644
--- a/packages/kbn-pm/package.json
+++ b/packages/kbn-pm/package.json
@@ -62,7 +62,7 @@
"strip-ansi": "^4.0.0",
"strong-log-transformer": "^2.1.0",
"tempy": "^0.3.0",
- "typescript": "3.7.2",
+ "typescript": "3.8.3",
"unlazy-loader": "^0.1.3",
"webpack": "^4.41.5",
"webpack-cli": "^3.3.10",
diff --git a/src/core/index.ts b/src/core/index.ts
index 23db81469f5bc5..20ca83e3f45824 100644
--- a/src/core/index.ts
+++ b/src/core/index.ts
@@ -16,7 +16,5 @@
* specific language governing permissions and limitations
* under the License.
*/
-import * as Public from './public';
-import * as Server from './server';
-
-export { Public, Server };
+export * as Public from './public';
+export * as Server from './server';
diff --git a/src/dev/i18n/extractors/code.js b/src/dev/i18n/extractors/code.js
index 6439f8ceff332d..c7fac29d9f917e 100644
--- a/src/dev/i18n/extractors/code.js
+++ b/src/dev/i18n/extractors/code.js
@@ -76,6 +76,7 @@ export function* extractCodeMessages(buffer, reporter) {
'dynamicImport',
'nullishCoalescingOperator',
'optionalChaining',
+ 'exportNamespaceFrom',
],
});
} catch (error) {
diff --git a/src/legacy/core_plugins/kibana/public/dashboard/np_ready/lib/migrate_app_state.ts b/src/legacy/core_plugins/kibana/public/dashboard/np_ready/lib/migrate_app_state.ts
index 0cd958ced0eb1c..b22d0944972a1b 100644
--- a/src/legacy/core_plugins/kibana/public/dashboard/np_ready/lib/migrate_app_state.ts
+++ b/src/legacy/core_plugins/kibana/public/dashboard/np_ready/lib/migrate_app_state.ts
@@ -38,7 +38,7 @@ import { migratePanelsTo730 } from '../../migrations/migrate_to_730_panels';
* Once we hit a major version, we can remove support for older style URLs and get rid of this logic.
*/
export function migrateAppState(
- appState: { [key: string]: unknown } & DashboardAppState,
+ appState: { [key: string]: any } & DashboardAppState,
kibanaVersion: string
): DashboardAppState {
if (!appState.panels) {
diff --git a/src/legacy/core_plugins/vis_type_metric/public/metric_vis_type.test.ts b/src/legacy/core_plugins/vis_type_metric/public/metric_vis_type.test.ts
index cce5864aa50a1f..20c24237e0c0e4 100644
--- a/src/legacy/core_plugins/vis_type_metric/public/metric_vis_type.test.ts
+++ b/src/legacy/core_plugins/vis_type_metric/public/metric_vis_type.test.ts
@@ -65,7 +65,7 @@ describe('metric_vis - createMetricVisTypeDefinition', () => {
// @ts-ignore
vis = visualizationsStart.createVis(stubIndexPattern, {
type: 'metric',
- aggs: [{ id: '1', type: 'top_hits', schema: 'metric', params: { field: 'ip' } }],
+ aggs: [{ id: '1', type: 'top_hits', schema: 'metric', params: { field: 'ip' } }] as any,
});
vis.params.dimensions = {
diff --git a/src/legacy/core_plugins/vis_type_timelion/public/components/panel.tsx b/src/legacy/core_plugins/vis_type_timelion/public/components/panel.tsx
index 3b42fa7dfcbb88..d9320e26a21d76 100644
--- a/src/legacy/core_plugins/vis_type_timelion/public/components/panel.tsx
+++ b/src/legacy/core_plugins/vis_type_timelion/public/components/panel.tsx
@@ -70,18 +70,18 @@ const emptyCaption = '
';
function Panel({ interval, seriesList, renderComplete }: PanelProps) {
const kibana = useKibana();
const [chart, setChart] = useState(() => cloneDeep(seriesList.list));
- const [canvasElem, setCanvasElem] = useState();
- const [chartElem, setChartElem] = useState();
+ const [canvasElem, setCanvasElem] = useState();
+ const [chartElem, setChartElem] = useState();
const [originalColorMap, setOriginalColorMap] = useState(() => new Map());
const [highlightedSeries, setHighlightedSeries] = useState(null);
- const [focusedSeries, setFocusedSeries] = useState();
- const [plot, setPlot] = useState();
+ const [focusedSeries, setFocusedSeries] = useState();
+ const [plot, setPlot] = useState();
// Used to toggle the series, and for displaying values on hover
- const [legendValueNumbers, setLegendValueNumbers] = useState();
- const [legendCaption, setLegendCaption] = useState();
+ const [legendValueNumbers, setLegendValueNumbers] = useState>();
+ const [legendCaption, setLegendCaption] = useState>();
const canvasRef = useCallback(node => {
if (node !== null) {
@@ -97,7 +97,7 @@ function Panel({ interval, seriesList, renderComplete }: PanelProps) {
useEffect(
() => () => {
- $(chartElem)
+ $(chartElem!)
.off('plotselected')
.off('plothover')
.off('mouseleave');
@@ -156,11 +156,11 @@ function Panel({ interval, seriesList, renderComplete }: PanelProps) {
caption.html(emptyCaption);
setLegendCaption(caption);
- const canvasNode = $(canvasElem);
+ const canvasNode = $(canvasElem!);
canvasNode.find('div.legend table').append(caption);
setLegendValueNumbers(canvasNode.find('.ngLegendValueNumber'));
- const legend = $(canvasElem).find('.ngLegendValue');
+ const legend = $(canvasElem!).find('.ngLegendValue');
if (legend) {
legend.click(toggleSeries);
legend.focus(focusSeries);
@@ -254,12 +254,12 @@ function Panel({ interval, seriesList, renderComplete }: PanelProps) {
(pos: Position) => {
unhighlightSeries();
- const axes = plot.getAxes();
- if (pos.x < axes.xaxis.min || pos.x > axes.xaxis.max) {
+ const axes = plot!.getAxes();
+ if (pos.x < axes.xaxis.min! || pos.x > axes.xaxis.max!) {
return;
}
- const dataset = plot.getData();
+ const dataset = plot!.getData();
if (legendCaption) {
legendCaption.text(
moment(pos.x).format(get(dataset, '[0]._global.legend.timeFormat', DEFAULT_TIME_FORMAT))
@@ -267,7 +267,7 @@ function Panel({ interval, seriesList, renderComplete }: PanelProps) {
}
for (let i = 0; i < dataset.length; ++i) {
const series = dataset[i];
- const useNearestPoint = series.lines.show && !series.lines.steps;
+ const useNearestPoint = series.lines!.show && !series.lines!.steps;
const precision = get(series, '_meta.precision', 2);
if (series._hide) {
@@ -289,12 +289,12 @@ function Panel({ interval, seriesList, renderComplete }: PanelProps) {
if (y != null && legendValueNumbers) {
let label = y.toFixed(precision);
- if (series.yaxis.tickFormatter) {
- label = series.yaxis.tickFormatter(Number(label), series.yaxis);
+ if (series.yaxis!.tickFormatter) {
+ label = series.yaxis!.tickFormatter(Number(label), series.yaxis);
}
legendValueNumbers.eq(i).text(`(${label})`);
} else {
- legendValueNumbers.eq(i).empty();
+ legendValueNumbers!.eq(i).empty();
}
}
},
@@ -314,7 +314,7 @@ function Panel({ interval, seriesList, renderComplete }: PanelProps) {
if (legendCaption) {
legendCaption.html(emptyCaption);
}
- each(legendValueNumbers, (num: Node) => {
+ each(legendValueNumbers!, (num: Node) => {
$(num).empty();
});
}, [legendCaption, legendValueNumbers]);
diff --git a/src/plugins/data/public/ui/shard_failure_modal/__snapshots__/shard_failure_modal.test.tsx.snap b/src/plugins/data/public/ui/shard_failure_modal/__snapshots__/shard_failure_modal.test.tsx.snap
index f7f3d1c1fbd0c2..2afd07679d74c4 100644
--- a/src/plugins/data/public/ui/shard_failure_modal/__snapshots__/shard_failure_modal.test.tsx.snap
+++ b/src/plugins/data/public/ui/shard_failure_modal/__snapshots__/shard_failure_modal.test.tsx.snap
@@ -174,7 +174,7 @@ exports[`ShardFailureModal renders matching snapshot given valid properties 1`]
diff --git a/src/plugins/data/public/ui/shard_failure_modal/shard_failure_modal.tsx b/src/plugins/data/public/ui/shard_failure_modal/shard_failure_modal.tsx
index 3dcab7732f7695..06248cf77cab8a 100644
--- a/src/plugins/data/public/ui/shard_failure_modal/shard_failure_modal.tsx
+++ b/src/plugins/data/public/ui/shard_failure_modal/shard_failure_modal.tsx
@@ -113,7 +113,7 @@ export function ShardFailureModal({ request, response, title, onClose }: Props)
)}
- onClose()} fill data-test-sub="closeShardFailureModal">
+ onClose()} fill data-test-subj="closeShardFailureModal">
iconForNode(el) ?? defaultIcon,
'background-height': (el: cytoscape.NodeSingular) =>
isService(el) ? '60%' : '40%',
'background-width': (el: cytoscape.NodeSingular) =>
+ // @ts-ignore no function allowed
isService(el) ? '60%' : '40%',
+ // @ts-ignore no function allowed
'border-color': (el: cytoscape.NodeSingular) =>
el.hasClass('primary') || el.selected()
? theme.euiColorPrimary
@@ -52,6 +53,7 @@ const style: cytoscape.Stylesheet[] = [
// theme.euiFontFamily doesn't work here for some reason, so we're just
// specifying a subset of the fonts for the label text.
'font-family': 'Inter UI, Segoe UI, Helvetica, Arial, sans-serif',
+ // @ts-ignore no strings allowed
'font-size': theme.euiFontSizeXS,
ghost: 'yes',
'ghost-offset-x': 0,
@@ -60,14 +62,17 @@ const style: cytoscape.Stylesheet[] = [
height: nodeHeight,
label: (el: cytoscape.NodeSingular) =>
isService(el) ? el.data(SERVICE_NAME) : el.data(DESTINATION_ADDRESS),
+ // @ts-ignore no strings allowed
'min-zoomed-font-size': theme.euiSizeL,
'overlay-opacity': 0,
+ // @ts-ignore no function allowed
shape: (el: cytoscape.NodeSingular) =>
isService(el) ? 'ellipse' : 'diamond',
'text-background-color': theme.euiColorLightestShade,
'text-background-opacity': 0,
'text-background-padding': theme.paddingSizes.xs,
'text-background-shape': 'roundrectangle',
+ // @ts-ignore no strings allowed
'text-margin-y': theme.paddingSizes.s,
'text-max-width': '200px',
'text-valign': 'bottom',
@@ -107,15 +112,14 @@ const style: cytoscape.Stylesheet[] = [
'target-distance-from-node': theme.paddingSizes.xs
}
},
- // @ts-ignore DefinitelyTyped says visibility is "none" but it's
- // actually "hidden"
{
selector: 'edge[isInverseEdge]',
+ // @ts-ignore DefinitelyTyped says visibility is "none" but it's actually "hidden"
style: { visibility: 'hidden' }
},
- // @ts-ignore
{
selector: '.invisible',
+ // @ts-ignore DefinitelyTyped says visibility is "none" but it's actually "hidden"
style: { visibility: 'hidden' }
},
{
diff --git a/x-pack/legacy/plugins/apm/public/components/shared/charts/MetricsChart/index.tsx b/x-pack/legacy/plugins/apm/public/components/shared/charts/MetricsChart/index.tsx
index 2ceac87d9aab38..183879ab787512 100644
--- a/x-pack/legacy/plugins/apm/public/components/shared/charts/MetricsChart/index.tsx
+++ b/x-pack/legacy/plugins/apm/public/components/shared/charts/MetricsChart/index.tsx
@@ -60,7 +60,7 @@ function getYTickFormatter(chart: GenericMetricsChart) {
case 'bytes': {
const max = Math.max(
...chart.series.map(({ data }) =>
- Math.max(...data.map(({ y }) => y || 0))
+ Math.max(...data.map(({ y }: { y: number }) => y || 0))
)
);
return getFixedByteFormatter(max);
diff --git a/x-pack/legacy/plugins/maps/public/layers/blended_vector_layer.ts b/x-pack/legacy/plugins/maps/public/layers/blended_vector_layer.ts
index 22990538bd5d31..6e5f1a1c590b87 100644
--- a/x-pack/legacy/plugins/maps/public/layers/blended_vector_layer.ts
+++ b/x-pack/legacy/plugins/maps/public/layers/blended_vector_layer.ts
@@ -107,8 +107,8 @@ function getClusterStyleDescriptor(
if (styleName === VECTOR_STYLES.SYMBOLIZE_AS || styleName === VECTOR_STYLES.LABEL_BORDER_SIZE) {
// copy none static/dynamic styles to cluster style
- // @ts-ignore
clusterStyleDescriptor.properties[styleName] = {
+ // @ts-ignore
options: { ...styleProperty.getOptions() },
};
} else if (styleProperty.isDynamic()) {
@@ -124,9 +124,9 @@ function getClusterStyleDescriptor(
),
}
: undefined;
- // @ts-ignore
clusterStyleDescriptor.properties[styleName] = {
type: STYLE_TYPE.DYNAMIC,
+ // @ts-ignore
options: {
...options,
field,
@@ -134,9 +134,9 @@ function getClusterStyleDescriptor(
};
} else {
// copy static styles to cluster style
- // @ts-ignore
clusterStyleDescriptor.properties[styleName] = {
type: STYLE_TYPE.STATIC,
+ // @ts-ignore
options: { ...styleProperty.getOptions() },
};
}
diff --git a/x-pack/legacy/plugins/rollup/server/lib/search_strategies/rollup_search_capabilities.ts b/x-pack/legacy/plugins/rollup/server/lib/search_strategies/rollup_search_capabilities.ts
index 5a57129aa60395..79d41a943b3b15 100644
--- a/x-pack/legacy/plugins/rollup/server/lib/search_strategies/rollup_search_capabilities.ts
+++ b/x-pack/legacy/plugins/rollup/server/lib/search_strategies/rollup_search_capabilities.ts
@@ -21,7 +21,7 @@ export const getRollupSearchCapabilities = (DefaultSearchCapabilities: any) =>
}
public get dateHistogram() {
- const [dateHistogram] = Object.values(this.availableMetrics.date_histogram);
+ const [dateHistogram] = Object.values(this.availableMetrics.date_histogram);
return dateHistogram;
}
diff --git a/x-pack/package.json b/x-pack/package.json
index 116bbb92007e77..5660e78aabfd9d 100644
--- a/x-pack/package.json
+++ b/x-pack/package.json
@@ -168,7 +168,7 @@
"tmp": "0.1.0",
"tree-kill": "^1.2.2",
"ts-loader": "^6.0.4",
- "typescript": "3.7.2",
+ "typescript": "3.8.3",
"vinyl-fs": "^3.0.3",
"whatwg-fetch": "^3.0.0",
"xml-crypto": "^1.4.0",
diff --git a/x-pack/plugins/alerting/server/alerts_client.ts b/x-pack/plugins/alerting/server/alerts_client.ts
index 49c80af0072c98..1eb2ba95c0f20b 100644
--- a/x-pack/plugins/alerting/server/alerts_client.ts
+++ b/x-pack/plugins/alerting/server/alerts_client.ts
@@ -534,7 +534,7 @@ export class AlertsClient {
alertId: string;
alertInstanceId: string;
}) {
- const { attributes, version } = await this.savedObjectsClient.get('alert', alertId);
+ const { attributes, version } = await this.savedObjectsClient.get('alert', alertId);
const mutedInstanceIds = attributes.mutedInstanceIds || [];
if (!attributes.muteAll && !mutedInstanceIds.includes(alertInstanceId)) {
mutedInstanceIds.push(alertInstanceId);
@@ -557,7 +557,7 @@ export class AlertsClient {
alertId: string;
alertInstanceId: string;
}) {
- const { attributes, version } = await this.savedObjectsClient.get('alert', alertId);
+ const { attributes, version } = await this.savedObjectsClient.get('alert', alertId);
const mutedInstanceIds = attributes.mutedInstanceIds || [];
if (!attributes.muteAll && mutedInstanceIds.includes(alertInstanceId)) {
await this.savedObjectsClient.update(
diff --git a/x-pack/plugins/infra/public/components/waffle/waffle_accounts_controls.tsx b/x-pack/plugins/infra/public/components/waffle/waffle_accounts_controls.tsx
index 56c3a205b05d48..bc6789879d380d 100644
--- a/x-pack/plugins/infra/public/components/waffle/waffle_accounts_controls.tsx
+++ b/x-pack/plugins/infra/public/components/waffle/waffle_accounts_controls.tsx
@@ -24,7 +24,7 @@ interface Props {
export const WaffleAccountsControls = (props: Props) => {
const { accountId, options } = props;
- const [isOpen, setIsOpen] = useState();
+ const [isOpen, setIsOpen] = useState();
const showPopover = useCallback(() => {
setIsOpen(true);
diff --git a/x-pack/plugins/infra/public/components/waffle/waffle_region_controls.tsx b/x-pack/plugins/infra/public/components/waffle/waffle_region_controls.tsx
index 52377bf4b8296e..ee0450d246df7b 100644
--- a/x-pack/plugins/infra/public/components/waffle/waffle_region_controls.tsx
+++ b/x-pack/plugins/infra/public/components/waffle/waffle_region_controls.tsx
@@ -23,7 +23,7 @@ interface Props {
export const WaffleRegionControls = (props: Props) => {
const { region, options } = props;
- const [isOpen, setIsOpen] = useState();
+ const [isOpen, setIsOpen] = useState();
const showPopover = useCallback(() => {
setIsOpen(true);
diff --git a/x-pack/plugins/ingest_manager/common/types/models/agent.ts b/x-pack/plugins/ingest_manager/common/types/models/agent.ts
index aa5729a101e111..0659a154c7ad9d 100644
--- a/x-pack/plugins/ingest_manager/common/types/models/agent.ts
+++ b/x-pack/plugins/ingest_manager/common/types/models/agent.ts
@@ -23,7 +23,7 @@ export interface NewAgentAction {
export type AgentAction = NewAgentAction & {
id: string;
created_at: string;
-} & SavedObjectAttributes;
+};
export interface AgentEvent {
type: 'STATE' | 'ERROR' | 'ACTION_RESULT' | 'ACTION';
@@ -74,7 +74,7 @@ export interface Agent extends AgentBase {
status?: string;
}
-export interface AgentSOAttributes extends AgentBase, SavedObjectAttributes {
+export interface AgentSOAttributes extends AgentBase {
user_provided_metadata: string;
local_metadata: string;
current_error_events?: string;
diff --git a/x-pack/plugins/ingest_manager/common/types/models/agent_config.ts b/x-pack/plugins/ingest_manager/common/types/models/agent_config.ts
index 002c3784446a8e..22dff396eefc2c 100644
--- a/x-pack/plugins/ingest_manager/common/types/models/agent_config.ts
+++ b/x-pack/plugins/ingest_manager/common/types/models/agent_config.ts
@@ -4,7 +4,6 @@
* you may not use this file except in compliance with the Elastic License.
*/
-import { SavedObjectAttributes } from 'src/core/public';
import {
Datasource,
DatasourcePackage,
@@ -25,13 +24,14 @@ export interface NewAgentConfig {
is_default?: boolean;
}
-export interface AgentConfig extends NewAgentConfig, SavedObjectAttributes {
+export interface AgentConfig extends NewAgentConfig {
id: string;
status: AgentConfigStatus;
datasources: string[] | Datasource[];
updated_on: string;
updated_by: string;
revision: number;
+ agents: number;
}
export type FullAgentConfigDatasource = Pick & {
diff --git a/x-pack/plugins/ingest_manager/server/services/agents/actions.ts b/x-pack/plugins/ingest_manager/server/services/agents/actions.ts
index 2f8ed9f504453a..72dd917f15e1b0 100644
--- a/x-pack/plugins/ingest_manager/server/services/agents/actions.ts
+++ b/x-pack/plugins/ingest_manager/server/services/agents/actions.ts
@@ -36,7 +36,7 @@ export function createAgentAction(createdAt: Date, newAgentAction: NewAgentActio
created_at: createdAt.toISOString(),
};
- return Object.assign(agentAction, newAgentAction);
+ return Object.assign(agentAction, newAgentAction) as AgentAction;
}
export interface ActionsService {
diff --git a/x-pack/plugins/ml/public/application/data_frame_analytics/pages/analytics_management/components/analytics_list/action_start.tsx b/x-pack/plugins/ml/public/application/data_frame_analytics/pages/analytics_management/components/analytics_list/action_start.tsx
index 40664a1413845f..26dc333a54741e 100644
--- a/x-pack/plugins/ml/public/application/data_frame_analytics/pages/analytics_management/components/analytics_list/action_start.tsx
+++ b/x-pack/plugins/ml/public/application/data_frame_analytics/pages/analytics_management/components/analytics_list/action_start.tsx
@@ -54,7 +54,7 @@ export const StartAction: FC = ({ item }) => {
iconType="play"
onClick={openModal}
aria-label={buttonStartText}
- data-test-sub="mlAnalyticsJobStartButton"
+ data-test-subj="mlAnalyticsJobStartButton"
>
{buttonStartText}
diff --git a/x-pack/plugins/ml/public/application/services/http_service.ts b/x-pack/plugins/ml/public/application/services/http_service.ts
index 0283041fa11485..8566d9df68a898 100644
--- a/x-pack/plugins/ml/public/application/services/http_service.ts
+++ b/x-pack/plugins/ml/public/application/services/http_service.ts
@@ -10,7 +10,6 @@ import { getHttp } from '../util/dependency_cache';
function getResultHeaders(headers: HeadersInit): HeadersInit {
return {
- asSystemRequest: true,
'Content-Type': 'application/json',
...headers,
} as HeadersInit;
diff --git a/x-pack/plugins/security/public/management/api_keys/api_keys_grid/api_keys_grid_page.tsx b/x-pack/plugins/security/public/management/api_keys/api_keys_grid/api_keys_grid_page.tsx
index 779a2302cfadf9..f747794b1acf2e 100644
--- a/x-pack/plugins/security/public/management/api_keys/api_keys_grid/api_keys_grid_page.tsx
+++ b/x-pack/plugins/security/public/management/api_keys/api_keys_grid/api_keys_grid_page.tsx
@@ -22,6 +22,7 @@ import {
EuiTitle,
EuiToolTip,
EuiInMemoryTableProps,
+ EuiBasicTableColumn,
} from '@elastic/eui';
import { i18n } from '@kbn/i18n';
import { FormattedMessage } from '@kbn/i18n/react';
@@ -357,7 +358,7 @@ export class APIKeysGridPage extends Component {
private getColumnConfig = () => {
const { isAdmin } = this.state;
- let config = [
+ let config: Array> = [
{
field: 'name',
name: i18n.translate('xpack.security.management.apiKeys.table.nameColumnName', {
@@ -393,7 +394,6 @@ export class APIKeysGridPage extends Component {
defaultMessage: 'Created',
}),
sortable: true,
- // @ts-ignore
render: (creationDateMs: number) => moment(creationDateMs).format(DATE_FORMAT),
},
{
@@ -402,7 +402,6 @@ export class APIKeysGridPage extends Component {
defaultMessage: 'Expires',
}),
sortable: true,
- // @ts-ignore
render: (expirationDateMs: number) => {
if (expirationDateMs === undefined) {
return (
diff --git a/x-pack/plugins/transform/public/app/sections/clone_transform/clone_transform_section.tsx b/x-pack/plugins/transform/public/app/sections/clone_transform/clone_transform_section.tsx
index 373faee3b46ed3..19ba31d36e6e9a 100644
--- a/x-pack/plugins/transform/public/app/sections/clone_transform/clone_transform_section.tsx
+++ b/x-pack/plugins/transform/public/app/sections/clone_transform/clone_transform_section.tsx
@@ -74,7 +74,7 @@ export const CloneTransformSection: FC = ({ match }) => {
const transformId = match.params.transformId;
const [transformConfig, setTransformConfig] = useState();
- const [errorMessage, setErrorMessage] = useState();
+ const [errorMessage, setErrorMessage] = useState();
const [isInitialized, setIsInitialized] = useState(false);
const {
getIndexPatternIdByTitle,
diff --git a/x-pack/test/functional_with_es_ssl/fixtures/plugins/alerts/package.json b/x-pack/test/functional_with_es_ssl/fixtures/plugins/alerts/package.json
index 7f7463f4815e7f..5b7a33cc2d9cd7 100644
--- a/x-pack/test/functional_with_es_ssl/fixtures/plugins/alerts/package.json
+++ b/x-pack/test/functional_with_es_ssl/fixtures/plugins/alerts/package.json
@@ -10,6 +10,6 @@
"build": "rm -rf './target' && tsc"
},
"devDependencies": {
- "typescript": "3.7.2"
+ "typescript": "3.8.3"
}
}
diff --git a/yarn.lock b/yarn.lock
index bb5032f51c6c72..758f217de25ae6 100644
--- a/yarn.lock
+++ b/yarn.lock
@@ -354,6 +354,11 @@
resolved "https://registry.yarnpkg.com/@babel/helper-plugin-utils/-/helper-plugin-utils-7.0.0.tgz#bbb3fbee98661c569034237cc03967ba99b4f250"
integrity sha512-CYAOUCARwExnEixLdB6sDm2dIJ/YgEAKDM1MOeMeZu9Ld/bDgVo8aiWrXwcY7OBh+1Ea2uUcVRcxKk0GJvW7QA==
+"@babel/helper-plugin-utils@^7.8.3":
+ version "7.8.3"
+ resolved "https://registry.yarnpkg.com/@babel/helper-plugin-utils/-/helper-plugin-utils-7.8.3.tgz#9ea293be19babc0f52ff8ca88b34c3611b208670"
+ integrity sha512-j+fq49Xds2smCUNYmEHF9kGNkhbet6yVIBp4e6oeQpH1RUs/Ir06xUKzDjDkGcaaokPiTNs2JBWHjaE4csUkZQ==
+
"@babel/helper-regex@^7.0.0", "@babel/helper-regex@^7.4.4":
version "7.5.5"
resolved "https://registry.yarnpkg.com/@babel/helper-regex/-/helper-regex-7.5.5.tgz#0aa6824f7100a2e0e89c1527c23936c152cab351"
@@ -564,6 +569,14 @@
"@babel/helper-plugin-utils" "^7.0.0"
"@babel/plugin-syntax-dynamic-import" "^7.7.4"
+"@babel/plugin-proposal-export-namespace-from@^7.8.3":
+ version "7.8.3"
+ resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-export-namespace-from/-/plugin-proposal-export-namespace-from-7.8.3.tgz#63ad57265d0e3912afd666eb44ce26fa8cd2c774"
+ integrity sha512-WKK+9jz6TWUTX1uej9/EUVOmM1sK7aHv6bZyxbUV3NJjbiIZRqJITeXGMo7D631J72PEnIORh5VOlFCSlrLicg==
+ dependencies:
+ "@babel/helper-plugin-utils" "^7.8.3"
+ "@babel/plugin-syntax-export-namespace-from" "^7.8.3"
+
"@babel/plugin-proposal-json-strings@^7.2.0":
version "7.2.0"
resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-json-strings/-/plugin-proposal-json-strings-7.2.0.tgz#568ecc446c6148ae6b267f02551130891e29f317"
@@ -680,6 +693,13 @@
dependencies:
"@babel/helper-plugin-utils" "^7.0.0"
+"@babel/plugin-syntax-export-namespace-from@^7.8.3":
+ version "7.8.3"
+ resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-export-namespace-from/-/plugin-syntax-export-namespace-from-7.8.3.tgz#028964a9ba80dbc094c915c487ad7c4e7a66465a"
+ integrity sha512-MXf5laXo6c1IbEbegDmzGPwGNTsHZmEy6QGznu5Sh2UCWvueywb2ee+CCE4zQiZstxU9BMoQO9i6zUFSY0Kj0Q==
+ dependencies:
+ "@babel/helper-plugin-utils" "^7.8.3"
+
"@babel/plugin-syntax-flow@^7.2.0":
version "7.2.0"
resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-flow/-/plugin-syntax-flow-7.2.0.tgz#a765f061f803bc48f240c26f8747faf97c26bf7c"
@@ -29938,10 +29958,10 @@ typescript-fsa@^3.0.0:
resolved "https://registry.yarnpkg.com/typescript-fsa/-/typescript-fsa-3.0.0.tgz#3ad1cb915a67338e013fc21f67c9b3e0e110c912"
integrity sha512-xiXAib35i0QHl/+wMobzPibjAH5TJLDj+qGq5jwVLG9qR4FUswZURBw2qihBm0m06tHoyb3FzpnJs1GRhRwVag==
-typescript@3.7.2, typescript@^3.0.1, typescript@^3.0.3, typescript@^3.2.2, typescript@^3.3.3333, typescript@^3.4.5, typescript@~3.7.2:
- version "3.7.2"
- resolved "https://registry.yarnpkg.com/typescript/-/typescript-3.7.2.tgz#27e489b95fa5909445e9fef5ee48d81697ad18fb"
- integrity sha512-ml7V7JfiN2Xwvcer+XAf2csGO1bPBdRbFCkYBczNZggrBZ9c7G3riSUeJmqEU5uOtXNPMhE3n+R4FA/3YOAWOQ==
+typescript@3.8.3, typescript@^3.0.1, typescript@^3.0.3, typescript@^3.2.2, typescript@^3.3.3333, typescript@^3.4.5, typescript@~3.7.2:
+ version "3.8.3"
+ resolved "https://registry.yarnpkg.com/typescript/-/typescript-3.8.3.tgz#409eb8544ea0335711205869ec458ab109ee1061"
+ integrity sha512-MYlEfn5VrLNsgudQTVJeNaQFUAI7DkhnOjdpAp4T+ku1TfQClewlbSuTVHiA+8skNBgaf02TL/kLOvig4y3G8w==
typings-tester@^0.3.2:
version "0.3.2"