catalog: remove Pagination type
Signed-off-by: Vincenzo Scamporlino <vincenzos@spotify.com>
This commit is contained in:
@@ -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>>;
|
||||
|
||||
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user