frontend-app-api: extract Mutable to common internal type in graph

Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
Patrik Oldsberg
2023-10-17 17:44:49 +02:00
parent 650309205b
commit 7df6a42e4a
2 changed files with 6 additions and 5 deletions
@@ -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