add api-report.md

Signed-off-by: Kiss Miklos <miklos@roadie.io>
This commit is contained in:
Kiss Miklos
2022-06-10 15:50:47 +02:00
parent 9d2d6a0cea
commit 3ff65242b8
+14 -5
View File
@@ -7,6 +7,7 @@
import { ApiRef } from '@backstage/core-plugin-api';
import { BackstagePlugin } from '@backstage/core-plugin-api';
import { BackstageUserIdentity } from '@backstage/core-plugin-api';
import { IconComponent } from '@backstage/core-plugin-api';
import { ProfileInfo } from '@backstage/core-plugin-api';
import { PropsWithChildren } from 'react';
@@ -129,9 +130,17 @@ export const UserSettingsThemeToggle: () => JSX.Element;
// Warning: (ae-missing-release-tag) "useUserProfile" is exported by the package, but it is missing a release tag (@alpha, @beta, @public, or @internal)
//
// @public (undocumented)
export const useUserProfile: () => {
profile: ProfileInfo;
displayName: string;
loading: boolean;
};
export const useUserProfile: () =>
| {
profile: ProfileInfo;
displayName: string;
backstageIdentity: undefined;
loading: boolean;
}
| {
profile: ProfileInfo;
backstageIdentity: BackstageUserIdentity;
displayName: string;
loading: false;
};
```