catalog: remove Pagination type

Signed-off-by: Vincenzo Scamporlino <vincenzos@spotify.com>
This commit is contained in:
Vincenzo Scamporlino
2023-11-21 13:35:45 +01:00
parent a2c24865a2
commit 901cc8886f
4 changed files with 7 additions and 17 deletions
+5 -8
View File
@@ -297,7 +297,11 @@ export const EntityListProvider: <EntityFilters extends DefaultEntityFilters>(
// @public (undocumented)
export type EntityListProviderProps = PropsWithChildren<{
pagination?: Pagination;
pagination?:
| boolean
| {
limit?: number;
};
}>;
// @public (undocumented)
@@ -653,13 +657,6 @@ export class MockStarredEntitiesApi implements StarredEntitiesApi {
toggleStarred(entityRef: string): Promise<void>;
}
// @public (undocumented)
export type Pagination =
| boolean
| {
limit?: number;
};
// @public
export interface StarredEntitiesApi {
starredEntitie$(): Observable<Set<string>>;
-1
View File
@@ -33,7 +33,6 @@ export type {
DefaultEntityFilters,
EntityListContextProps,
EntityListProviderProps,
Pagination,
} from './useEntityListProvider';
export { useEntityTypeFilter } from './useEntityTypeFilter';
export { useRelatedEntities } from './useRelatedEntities';
@@ -130,14 +130,9 @@ type OutputState<EntityFilters extends DefaultEntityFilters> = {
* @public
*/
export type EntityListProviderProps = PropsWithChildren<{
pagination?: Pagination;
pagination?: boolean | { limit?: number };
}>;
/**
* @public
*/
export type Pagination = boolean | { limit?: number };
/**
* Provides entities and filters for a catalog listing.
* @public
@@ -37,7 +37,6 @@ import {
EntityKindPicker,
EntityNamespacePicker,
EntityOwnerPickerProps,
Pagination,
} from '@backstage/plugin-catalog-react';
import React, { ReactNode } from 'react';
import { createComponentRouteRef } from '../../routes';
@@ -51,7 +50,7 @@ import { CatalogTableColumnsFunc } from '../CatalogTable/types';
export type BaseCatalogPageProps = {
filters: ReactNode;
content?: ReactNode;
pagination?: Pagination;
pagination?: boolean | { limit?: number };
};
/** @internal */