UNPKG

1.35 kBJavaScriptView Raw
1"use strict";
2/**
3 * @license
4 * Copyright Google LLC All Rights Reserved.
5 *
6 * Use of this source code is governed by an MIT-style license that can be
7 * found in the LICENSE file at https://angular.io/license
8 */
9Object.defineProperty(exports, "__esModule", { value: true });
10exports.BuilderVersionSymbol = exports.BuilderSymbol = void 0;
11// Internal types that should not be exported directly. These are used by the host and architect
12// itself. Host implementations should import the host.ts file.
13/**
14 * BuilderSymbol used for knowing if a function was created using createBuilder(). This is a
15 * property set on the function that should be `true`.
16 * Using Symbol.for() as it's a global registry that's the same for all installations of
17 * Architect (if some libraries depends directly on architect instead of sharing the files).
18 */
19exports.BuilderSymbol = Symbol.for('@angular-devkit/architect:builder');
20/**
21 * BuilderVersionSymbol used for knowing which version of the library createBuilder() came from.
22 * This is to make sure we don't try to use an incompatible builder.
23 * Using Symbol.for() as it's a global registry that's the same for all installations of
24 * Architect (if some libraries depends directly on architect instead of sharing the files).
25 */
26exports.BuilderVersionSymbol = Symbol.for('@angular-devkit/architect:version');