File

libs/nx/src/executors/shared/metadata-utils/__test/example-library/src/other/get-form-recursive-return-type.ts

Extends

AbstractBuildingBlock

Index

Properties
Methods

Properties

form
Type : FormGroupTyped<FormType>

Methods

getForm
getForm()
Returns : FormGroupTyped<FormType>
import { FormGroupTyped } from '@allianz/taly-common';
import { AbstractBuildingBlock } from '@allianz/taly-core';

type FormType = {
  firstLayerPropertyA: string;
  firstLayerPropertyB: {
    firstLayerSuBPropertyA: {
      firstLayerSubSubPropertyA: SecondLayerType;
    };
  };
  firstLayerPropertyC: string;
};

type SecondLayerType = {
  secondLayerPropertyA: boolean;
  secondLayerPropertyB: {
    secondLayerSubPropertyA: ThirdLayerType;
  };
  secondLayerPropertyC: boolean;
};

type ThirdLayerType = {
  thirdLayerPropertyA: number;
  thirdLayerPropertyB: {
    thirdLayerSubPropertyA: FourthLayerWithRecursionType;
  };
  thirdLayerPropertyC: number;
};

type FourthLayerWithRecursionType = {
  fourthLayerPropertyA: string;
  fourthLayerPropertyB: {
    fourthLayerSubPropertyWithRecursion: SecondLayerType;
  };
  fourthLayerPropertyC: string;
};

export class GetFormRecursiveReturnType extends AbstractBuildingBlock {
  form: FormGroupTyped<FormType>;

  getForm() {
    return this.form;
  }
}

results matching ""

    No results matching ""