MCPcopy Create free account
hub / github.com/expo/eas-cli / constructor

Method constructor

packages/steps/src/BuildFunctionGroup.ts:24–58  ·  view source on GitHub ↗
({
    namespace,
    id,
    inputProviders,
    createBuildStepsFromFunctionGroupCall,
  }: {
    namespace: string;
    id: string;
    inputProviders?: BuildStepInputProvider[];
    createBuildStepsFromFunctionGroupCall: (
      globalCtx: BuildStepGlobalContext,
      {
        inputs,
      }: {
        inputs: BuildStepInputById;
      }
    ) => BuildStep[];
  })

Source from the content-addressed store, hash-verified

22 ) => BuildStep[];
23
24 constructor({
25 namespace,
26 id,
27 inputProviders,
28 createBuildStepsFromFunctionGroupCall,
29 }: {
30 namespace: string;
31 id: string;
32 inputProviders?: BuildStepInputProvider[];
33 createBuildStepsFromFunctionGroupCall: (
34 globalCtx: BuildStepGlobalContext,
35 {
36 inputs,
37 }: {
38 inputs: BuildStepInputById;
39 }
40 ) => BuildStep[];
41 }) {
42 this.namespace = namespace;
43 this.id = id;
44 this.inputProviders = inputProviders;
45
46 this.createBuildStepsFromFunctionGroupCall = (ctx, { callInputs = {} } = {}) => {
47 const inputs = this.inputProviders?.map(inputProvider => {
48 const input = inputProvider(ctx, id);
49 if (input.id in callInputs) {
50 input.set(callInputs[input.id]);
51 }
52 return input;
53 });
54 return createBuildStepsFromFunctionGroupCall(ctx, {
55 inputs: makeBuildStepInputByIdMap(inputs),
56 });
57 };
58 }
59
60 public getFullId(): string {
61 return this.namespace === undefined ? this.id : `${this.namespace}/${this.id}`;

Callers

nothing calls this directly

Calls 2

setMethod · 0.45

Tested by

no test coverage detected