From 608f7745fa14c384eb16bb3a6724bed8412068fd Mon Sep 17 00:00:00 2001 From: Vincenzo Scamporlino Date: Wed, 15 Nov 2023 20:16:27 +0100 Subject: [PATCH] catalog: expose experimental pagination config Signed-off-by: Vincenzo Scamporlino --- plugins/catalog/config.d.ts | 25 +++++++++++++++++++++++++ plugins/catalog/package.json | 6 ++++-- 2 files changed, 29 insertions(+), 2 deletions(-) create mode 100644 plugins/catalog/config.d.ts diff --git a/plugins/catalog/config.d.ts b/plugins/catalog/config.d.ts new file mode 100644 index 0000000000..a853d660c8 --- /dev/null +++ b/plugins/catalog/config.d.ts @@ -0,0 +1,25 @@ +/* + * Copyright 2023 The Backstage Authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +export interface Config { + catalog?: { + experimental?: { + /** + * @visibility frontend + */ + paginatedEntities?: boolean; + }; + }; +} diff --git a/plugins/catalog/package.json b/plugins/catalog/package.json index 150f5362f3..827601969a 100644 --- a/plugins/catalog/package.json +++ b/plugins/catalog/package.json @@ -91,6 +91,8 @@ "@testing-library/user-event": "^14.0.0" }, "files": [ - "dist" - ] + "dist", + "config.d.ts" + ], + "configSchema": "config.d.ts" }