it just keeps 🧹 -ing

Signed-off-by: Fredrik Adelöw <freben@gmail.com>
This commit is contained in:
Fredrik Adelöw
2022-08-18 16:58:54 +02:00
parent d461eca145
commit ef9ab322de
55 changed files with 193 additions and 302 deletions
+1 -1
View File
@@ -78,7 +78,7 @@ export class CatalogClient implements CatalogApi {
};
});
addLocation(
{ type, target, dryRun }: AddLocationRequest,
request: AddLocationRequest,
options?: CatalogRequestOptions,
): Promise<AddLocationResponse>;
getEntities(
+3 -1
View File
@@ -272,9 +272,11 @@ export class CatalogClient implements CatalogApi {
* {@inheritdoc CatalogApi.addLocation}
*/
async addLocation(
{ type = 'url', target, dryRun }: AddLocationRequest,
request: AddLocationRequest,
options?: CatalogRequestOptions,
): Promise<AddLocationResponse> {
const { type = 'url', target, dryRun } = request;
const response = await this.fetchApi.fetch(
`${await this.discoveryApi.getBaseUrl('catalog')}/locations${
dryRun ? '?dryRun=true' : ''
+1 -4
View File
@@ -649,10 +649,7 @@ export interface PluginOptionsProviderProps {
}
// @alpha
export const PluginProvider: ({
children,
plugin,
}: PluginOptionsProviderProps) => JSX.Element;
export const PluginProvider: (props: PluginOptionsProviderProps) => JSX.Element;
// @public
export type ProfileInfo = {
@@ -39,10 +39,11 @@ export interface PluginOptionsProviderProps {
*
* @alpha
*/
export const PluginProvider = ({
children,
plugin,
}: PluginOptionsProviderProps): JSX.Element => {
export const PluginProvider = (
props: PluginOptionsProviderProps,
): JSX.Element => {
const { children, plugin } = props;
const { Provider } = createVersionedContext<{
1: { plugin: BackstagePlugin | undefined };
}>(contextKey);