export deprecated properly

Signed-off-by: Brian Fletcher <brian@roadie.io>
This commit is contained in:
Brian Fletcher
2023-05-23 08:15:20 +01:00
parent d019c40b24
commit 8359c7647d
3 changed files with 35 additions and 14 deletions
+5 -4
View File
@@ -20,11 +20,9 @@ export const EntityPagerDutyCard: (
) => JSX.Element;
// @public (undocumented)
type EntityPagerDutyCardProps = {
export type EntityPagerDutyCardProps = {
readOnly?: boolean;
};
export { EntityPagerDutyCardProps };
export { EntityPagerDutyCardProps as PagerDutyCardProps };
// @public (undocumented)
export const HomePagePagerDutyCard: (
@@ -67,9 +65,12 @@ export type PagerDutyAssignee = {
html_url: string;
};
// @public (undocumented)
// @public @deprecated (undocumented)
export const PagerDutyCard: (props: EntityPagerDutyCardProps) => JSX.Element;
// @public @deprecated (undocumented)
export type PagerDutyCardProps = EntityPagerDutyCardProps;
// @public (undocumented)
export type PagerDutyChangeEvent = {
id: string;
+29
View File
@@ -0,0 +1,29 @@
/*
* 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.
*/
import { EntityPagerDutyCardProps, EntityPagerDutyCard } from './components';
/**
* @public
* @deprecated Please use EntityPagerDutyCard
*/
export const PagerDutyCard = EntityPagerDutyCard;
/**
* @public
* @deprecated Please use EntityPagerDutyCardProps
*/
export type PagerDutyCardProps = EntityPagerDutyCardProps;
+1 -10
View File
@@ -29,16 +29,7 @@ export {
export * from './components';
/**
* @deprecated Please use EntityPagerDutyCard
*/
export { EntityPagerDutyCard as PagerDutyCard } from './components';
/**
* @deprecated Please use EntityPagerDutyCardProps
*/
export type { EntityPagerDutyCardProps as PagerDutyCardProps } from './components';
export * from './api';
export * from './deprecated';
export type { PagerDutyEntity } from './types';