aboutsummaryrefslogtreecommitdiff
path: root/sandbox/testAppNevena/Front/node_modules/@angular-devkit/architect/src/internal.d.ts
diff options
context:
space:
mode:
authorDanijel Andjelkovic <adanijel99@gmail.com>2022-03-01 21:54:41 +0100
committerDanijel Andjelkovic <adanijel99@gmail.com>2022-03-01 21:54:41 +0100
commit6c8128f9fd5a5d0be115806c35a21b3d683df8d6 (patch)
treef46c2f6b3b9b294ff32bd75c08ccdc9e7a8cc4ef /sandbox/testAppNevena/Front/node_modules/@angular-devkit/architect/src/internal.d.ts
parent2400b84e95913665da6279114168148444b8f9ab (diff)
parent7d3640f824f46490b47bd95f1c5a16644f712068 (diff)
Merge branch 'dev' of http://gitlab.pmf.kg.ac.rs/igrannonica/neuronstellar into logo
Diffstat (limited to 'sandbox/testAppNevena/Front/node_modules/@angular-devkit/architect/src/internal.d.ts')
-rw-r--r--sandbox/testAppNevena/Front/node_modules/@angular-devkit/architect/src/internal.d.ts66
1 files changed, 66 insertions, 0 deletions
diff --git a/sandbox/testAppNevena/Front/node_modules/@angular-devkit/architect/src/internal.d.ts b/sandbox/testAppNevena/Front/node_modules/@angular-devkit/architect/src/internal.d.ts
new file mode 100644
index 00000000..c1364fa1
--- /dev/null
+++ b/sandbox/testAppNevena/Front/node_modules/@angular-devkit/architect/src/internal.d.ts
@@ -0,0 +1,66 @@
+/**
+ * @license
+ * Copyright Google LLC All Rights Reserved.
+ *
+ * Use of this source code is governed by an MIT-style license that can be
+ * found in the LICENSE file at https://angular.io/license
+ */
+import { experimental, json } from '@angular-devkit/core';
+import { BuilderInfo, BuilderInput, BuilderOutput, Target } from './api';
+/**
+ * BuilderSymbol used for knowing if a function was created using createBuilder(). This is a
+ * property set on the function that should be `true`.
+ * Using Symbol.for() as it's a global registry that's the same for all installations of
+ * Architect (if some libraries depends directly on architect instead of sharing the files).
+ */
+export declare const BuilderSymbol: unique symbol;
+/**
+ * BuilderVersionSymbol used for knowing which version of the library createBuilder() came from.
+ * This is to make sure we don't try to use an incompatible builder.
+ * Using Symbol.for() as it's a global registry that's the same for all installations of
+ * Architect (if some libraries depends directly on architect instead of sharing the files).
+ */
+export declare const BuilderVersionSymbol: unique symbol;
+/**
+ * A Specialization of the JobHandler type. This exposes BuilderDescription as the job description
+ * type.
+ */
+export declare type BuilderJobHandler<A extends json.JsonObject = json.JsonObject, I extends BuilderInput = BuilderInput, O extends BuilderOutput = BuilderOutput> = experimental.jobs.JobHandler<A, I, O> & {
+ jobDescription: BuilderDescription;
+};
+/**
+ * A Builder description, which is used internally. Adds the builder info which is the
+ * metadata attached to a builder in Architect.
+ */
+export interface BuilderDescription extends experimental.jobs.JobDescription {
+ info: BuilderInfo;
+}
+/**
+ * A Builder instance. Use createBuilder() to create one of these.
+ */
+export interface Builder<OptionT extends json.JsonObject = json.JsonObject> {
+ handler: experimental.jobs.JobHandler<json.JsonObject, BuilderInput, BuilderOutput>;
+ [BuilderSymbol]: true;
+ [BuilderVersionSymbol]: string;
+}
+export interface ArchitectHost<BuilderInfoT extends BuilderInfo = BuilderInfo> {
+ /**
+ * Get the builder name for a target.
+ * @param target The target to inspect.
+ */
+ getBuilderNameForTarget(target: Target): Promise<string | null>;
+ /**
+ * Resolve a builder. This needs to return a string which will be used in a dynamic `import()`
+ * clause. This should throw if no builder can be found. The dynamic import will throw if
+ * it is unsupported.
+ * @param builderName The name of the builder to be used.
+ * @returns All the info needed for the builder itself.
+ */
+ resolveBuilder(builderName: string): Promise<BuilderInfoT | null>;
+ loadBuilder(info: BuilderInfoT): Promise<Builder | null>;
+ getCurrentDirectory(): Promise<string>;
+ getWorkspaceRoot(): Promise<string>;
+ getOptionsForTarget(target: Target): Promise<json.JsonObject | null>;
+ getProjectMetadata(projectName: string): Promise<json.JsonObject | null>;
+ getProjectMetadata(target: Target): Promise<json.JsonObject | null>;
+}