@@ -4,6 +4,8 @@
|
||||
|
||||
```ts
|
||||
import { ApiRef } from '@backstage/core-plugin-api';
|
||||
import { Expand } from '@backstage/types';
|
||||
import { ExpandRecursive } from '@backstage/types';
|
||||
import { Observable } from '@backstage/types';
|
||||
import { TranslationMessages as TranslationMessages_2 } from '@backstage/core-plugin-api/alpha';
|
||||
import { TranslationRef as TranslationRef_2 } from '@backstage/core-plugin-api/alpha';
|
||||
|
||||
@@ -39,6 +39,7 @@ import { ErrorApi } from '@backstage/core-plugin-api';
|
||||
import { ErrorApiError } from '@backstage/core-plugin-api';
|
||||
import { ErrorApiErrorContext } from '@backstage/core-plugin-api';
|
||||
import { errorApiRef } from '@backstage/core-plugin-api';
|
||||
import { Expand } from '@backstage/types';
|
||||
import { FeatureFlag } from '@backstage/core-plugin-api';
|
||||
import { FeatureFlagsApi } from '@backstage/core-plugin-api';
|
||||
import { featureFlagsApiRef } from '@backstage/core-plugin-api';
|
||||
|
||||
@@ -21,6 +21,20 @@ export type DeferredPromise<
|
||||
// @public
|
||||
export function durationToMilliseconds(duration: HumanDuration): number;
|
||||
|
||||
// @public
|
||||
export type Expand<T> = T extends infer O
|
||||
? {
|
||||
[K in keyof O]: O[K];
|
||||
}
|
||||
: never;
|
||||
|
||||
// @public
|
||||
export type ExpandRecursive<T> = T extends infer O
|
||||
? {
|
||||
[K in keyof O]: ExpandRecursive<O[K]>;
|
||||
}
|
||||
: never;
|
||||
|
||||
// @public
|
||||
export type HumanDuration = {
|
||||
years?: number;
|
||||
|
||||
Reference in New Issue
Block a user