mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
20 lines
1.1 KiB
TypeScript
20 lines
1.1 KiB
TypeScript
/**
|
|
* Copyright (c) OpenLens Authors. All rights reserved.
|
|
* Licensed under MIT License. See LICENSE in root directory for more information.
|
|
*/
|
|
import type { DiContainerForInjection, InjectionInstanceWithMeta } from "@ogre-tools/injectable";
|
|
import type { Runnable, RunnableSync, RunnableSyncWithId, RunnableWithId } from "./types";
|
|
/**
|
|
* Verifies that the graph produces by `runnables`'s `runAfter`'s is acyclic. Namely that it
|
|
* produces a Directed Acyclic Graph.
|
|
* @param tokenId The ID of the injectionToken that was `injectManyWithMeta()`-ed. Used for error messages
|
|
* @param runnables The list of runnables to check.
|
|
*/
|
|
export declare function verifyRunnablesAreDAG<Param>(tokenId: string, runnables: RunnableWithId<Param>[]): void;
|
|
export declare function verifyRunnablesAreDAG<Param>(tokenId: string, runnables: RunnableSyncWithId<Param>[]): void;
|
|
export interface ConvertToWithId {
|
|
<Param>(src: InjectionInstanceWithMeta<Runnable<Param>>): RunnableWithId<Param>;
|
|
<Param>(src: InjectionInstanceWithMeta<RunnableSync<Param>>): RunnableSyncWithId<Param>;
|
|
}
|
|
export declare const convertToWithIdWith: (di: DiContainerForInjection) => ConvertToWithId;
|