Don't bootstrap core type emits (#66377)

This commit is contained in:
Rudolf Meijering 2020-05-15 11:03:46 +02:00 committed by GitHub
parent f0d1dce93b
commit 795483d9b5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
14 changed files with 17 additions and 15 deletions

View file

@ -219,6 +219,8 @@ module.exports = {
// for absolute imports until fixed in
// https://github.com/elastic/kibana/issues/36096
'!src/core/server/*.test.mocks{,.ts}',
'target/types/**',
],
allowSameFolder: true,
errorMessage:

View file

@ -68,7 +68,7 @@
"kbn:watch": "node scripts/kibana --dev --logging.json=false",
"build:types": "tsc --p tsconfig.types.json",
"docs:acceptApiChanges": "node --max-old-space-size=6144 scripts/check_published_api_changes.js --accept",
"kbn:bootstrap": "yarn build:types && node scripts/register_git_hook",
"kbn:bootstrap": "node scripts/register_git_hook",
"spec_to_console": "node scripts/spec_to_console",
"backport-skip-ci": "backport --prDescription \"[skip-ci]\"",
"storybook": "node scripts/storybook",

View file

@ -8,8 +8,8 @@ import { fold } from 'fp-ts/lib/Either';
import { identity } from 'fp-ts/lib/function';
import { pipe } from 'fp-ts/lib/pipeable';
import createContainer from 'constate';
import { HttpHandler } from 'target/types/core/public/http';
import { ToastInput } from 'target/types/core/public/notifications/toasts/toasts_api';
import { HttpHandler } from 'src/core/public';
import { ToastInput } from 'src/core/public';
import {
SourceResponseRuntimeType,
SourceResponse,

View file

@ -7,8 +7,8 @@
import React, { useMemo, useState } from 'react';
import { IHttpFetchError } from 'src/core/public';
import { i18n } from '@kbn/i18n';
import { HttpHandler } from 'target/types/core/public/http';
import { ToastInput } from 'target/types/core/public/notifications/toasts/toasts_api';
import { HttpHandler } from 'src/core/public';
import { ToastInput } from 'src/core/public';
import { useTrackedPromise } from '../utils/use_tracked_promise';
import { useKibana } from '../../../../../src/plugins/kibana_react/public';

View file

@ -7,7 +7,7 @@
import DateMath from '@elastic/datemath';
import { isEqual } from 'lodash';
import { useEffect, useState } from 'react';
import { HttpHandler } from 'target/types/core/public/http';
import { HttpHandler } from 'src/core/public';
import { IIndexPattern } from 'src/plugins/data/public';
import { SourceQuery } from '../../../../../common/graphql/types';
import {

View file

@ -5,9 +5,9 @@
*/
import { set } from 'lodash/fp';
import { RequestHandlerContext } from 'src/core/server';
import { SetupPlugins } from '../../../../plugin';
import { KibanaRequest } from '../../../../../../../../src/core/server';
import { RequestHandlerContext } from '../../../../../../../../target/types/core/server';
import { FrameworkRequest } from '../../../framework';
export const buildFrameworkRequest = async (

View file

@ -6,11 +6,11 @@
import React, { Fragment } from 'react';
import { FormattedMessage } from '@kbn/i18n/react';
import { IHttpFetchError } from 'src/core/public';
import { EmptyStateError } from './empty_state_error';
import { EmptyStateLoading } from './empty_state_loading';
import { DataOrIndexMissing } from './data_or_index_missing';
import { DynamicSettings, StatesIndexStatus } from '../../../../common/runtime_types';
import { IHttpFetchError } from '../../../../../../../target/types/core/public/http';
interface EmptyStateProps {
children: JSX.Element[] | JSX.Element;

View file

@ -7,7 +7,7 @@
import { EuiEmptyPrompt, EuiPanel, EuiTitle, EuiFlexGroup, EuiFlexItem } from '@elastic/eui';
import { i18n } from '@kbn/i18n';
import React, { Fragment } from 'react';
import { IHttpFetchError } from '../../../../../../../target/types/core/public/http';
import { IHttpFetchError } from 'src/core/public';
interface EmptyStateErrorProps {
errors: IHttpFetchError[];

View file

@ -5,9 +5,9 @@
*/
import { createAction } from 'redux-actions';
import { IHttpFetchError } from 'src/core/public';
import { QueryParams } from './types';
import { MonitorDurationResult } from '../../../common/types';
import { IHttpFetchError } from '../../../../../../target/types/core/public/http';
type MonitorQueryParams = QueryParams & { monitorId: string };

View file

@ -5,7 +5,7 @@
*/
import { Action } from 'redux-actions';
import { IHttpFetchError } from '../../../../../../target/types/core/public/http';
import { IHttpFetchError } from 'src/core/public';
export interface AsyncAction<Payload, SuccessPayload> {
get: (payload: Payload) => Action<Payload>;

View file

@ -5,8 +5,8 @@
*/
import { createAction } from 'redux-actions';
import { IHttpFetchError } from 'src/core/public';
import { AsyncAction, AsyncAction1 } from './types';
import { IHttpFetchError } from '../../../../../../target/types/core/public/http';
export function createAsyncAction<Payload, SuccessPayload>(
actionStr: string

View file

@ -6,7 +6,7 @@
import { PathReporter } from 'io-ts/lib/PathReporter';
import { isRight } from 'fp-ts/lib/Either';
import { HttpFetchQuery, HttpSetup } from '../../../../../../target/types/core/public';
import { HttpFetchQuery, HttpSetup } from 'src/core/public';
class ApiService {
private static instance: ApiService;

View file

@ -6,7 +6,7 @@
import { call, put } from 'redux-saga/effects';
import { Action } from 'redux-actions';
import { IHttpFetchError } from '../../../../../../target/types/core/public/http';
import { IHttpFetchError } from 'src/core/public';
/**
* Factory function for a fetch effect. It expects three action creators,

View file

@ -4,7 +4,7 @@
* you may not use this file except in compliance with the Elastic License.
*/
import { IHttpFetchError } from '../../../../../../target/types/core/public/http';
import { IHttpFetchError } from 'src/core/public';
export interface AsyncInitialState<ReduceStateType> {
data: ReduceStateType | null;