frontend-app-api: extract Mutable to common internal type in graph
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
@@ -14,11 +14,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
import { AppNode, AppNodeEdges, AppNodeSpec } from './types';
|
||||
|
||||
type Mutable<T> = {
|
||||
-readonly [P in keyof T]: T[P];
|
||||
};
|
||||
import { AppNode, AppNodeEdges, AppNodeSpec, Mutable } from './types';
|
||||
|
||||
/**
|
||||
* Build the app graph by iterating through all node specs and constructing the app
|
||||
|
||||
@@ -20,6 +20,11 @@ import {
|
||||
ExtensionDataRef,
|
||||
} from '@backstage/frontend-plugin-api';
|
||||
|
||||
/** @internal */
|
||||
export type Mutable<T> = {
|
||||
-readonly [P in keyof T]: T[P];
|
||||
};
|
||||
|
||||
/**
|
||||
* The specification for this node in the app graph.
|
||||
* @public
|
||||
|
||||
Reference in New Issue
Block a user