Skip to content

Commit

Permalink
Remove unnecessarily public exports.
Browse files Browse the repository at this point in the history
  • Loading branch information
adcoelho committed May 11, 2023
1 parent 547755c commit 6a0ff8c
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 30 deletions.
25 changes: 10 additions & 15 deletions x-pack/plugins/cases/common/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,16 @@
// For example, constants below could eventually be in a "kbn-cases-constants" instead.
// See: https://docs.elastic.dev/kibana-dev-docs/key-concepts/platform-intro#public-plugin-api

export type { Case, Cases, CasesBulkGetResponse } from './api';
export type {
CaseUI,
CasesUI,
CasesFindResponseUI,
Ecs,
CaseViewRefreshPropInterface,
CasesPermissions,
} from './ui/types';

export {
APP_ID,
CASES_URL,
Expand All @@ -36,21 +46,6 @@ export {
throwErrors,
ExternalReferenceStorageType,
} from './api';

export type { Case, Cases, CasesBulkGetRequest, CasesBulkGetResponse } from './api';

export type {
CaseUI,
CasesUI,
CasesFindResponseUI,
Ecs,
CasesFeatures,
CaseViewRefreshPropInterface,
CasesPermissions,
} from './ui/types';

export { StatusAll } from './ui/types';

export { getCreateConnectorUrl, getAllConnectorsUrl } from './utils/connectors_api';
export { createUICapabilities } from './utils/capabilities';
export { getApiTags } from './utils/api_tags';
17 changes: 2 additions & 15 deletions x-pack/plugins/cases/public/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,25 +14,12 @@ export function plugin(initializerContext: PluginInitializerContext) {

export { DRAFT_COMMENT_STORAGE_ID } from './components/markdown_editor/plugins/lens/constants';

export type { CasesUiPlugin };
export type { CasesUiStart, CasesUiSetup } from './types';
export type { GetCasesProps } from './client/ui/get_cases';
export type { GetCreateCaseFlyoutProps } from './client/ui/get_create_case_flyout';
export type { GetAllCasesSelectorModalProps } from './client/ui/get_all_cases_selector_modal';
export type { GetRecentCasesProps } from './client/ui/get_recent_cases';

export type {
CaseAttachments,
SupportedCaseAttachment,
CaseAttachmentsWithoutOwner,
} from './types';
export type { CaseAttachments, CaseAttachmentsWithoutOwner } from './types';

export type { ICasesDeepLinkId } from './common/navigation';
export {
getCasesDeepLinks,
CasesDeepLinkId,
generateCaseViewPath,
getCreateCasePath,
getCaseViewPath,
getCasesConfigurePath,
} from './common/navigation';
export { getCasesDeepLinks, CasesDeepLinkId, generateCaseViewPath } from './common/navigation';

0 comments on commit 6a0ff8c

Please sign in to comment.