2018-09-03 14:53:16 +02:00
|
|
|
/*
|
|
|
|
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
2021-02-04 03:12:39 +01:00
|
|
|
* or more contributor license agreements. Licensed under the Elastic License
|
|
|
|
* 2.0; you may not use this file except in compliance with the Elastic License
|
|
|
|
* 2.0.
|
2018-09-03 14:53:16 +02:00
|
|
|
*/
|
2021-02-04 03:12:39 +01:00
|
|
|
|
2020-11-18 18:23:08 +01:00
|
|
|
import type { UnwrapPromise } from '@kbn/utility-types';
|
2020-04-30 22:08:50 +02:00
|
|
|
import '../../../typings/rison_node';
|
|
|
|
import '../../infra/types/eui';
|
2019-11-11 14:35:29 +01:00
|
|
|
// EUIBasicTable
|
2020-04-30 22:08:50 +02:00
|
|
|
import '../../reporting/public/components/report_listing';
|
2020-05-04 19:31:09 +02:00
|
|
|
import './apm_rum_react';
|
2019-11-11 14:35:29 +01:00
|
|
|
|
2019-04-01 10:01:21 +02:00
|
|
|
// Allow unknown properties in an object
|
2019-07-10 21:26:23 +02:00
|
|
|
export type AllowUnknownProperties<T> = T extends Array<infer X>
|
|
|
|
? Array<AllowUnknownObjectProperties<X>>
|
|
|
|
: AllowUnknownObjectProperties<T>;
|
|
|
|
|
|
|
|
type AllowUnknownObjectProperties<T> = T extends object
|
|
|
|
? { [Prop in keyof T]: AllowUnknownProperties<T[Prop]> } & {
|
2019-04-01 10:01:21 +02:00
|
|
|
[key: string]: unknown;
|
|
|
|
}
|
2019-07-10 21:26:23 +02:00
|
|
|
: T;
|
2019-04-01 22:18:01 +02:00
|
|
|
|
2020-11-18 18:23:08 +01:00
|
|
|
export type PromiseValueType<T extends Promise<any>> = UnwrapPromise<T>;
|
2020-02-03 22:11:48 +01:00
|
|
|
|
2019-11-15 13:26:57 +01:00
|
|
|
export type Maybe<T> = T | null | undefined;
|