File

libs/nx/src/executors/shared/metadata-utils/__test/example-library/src/other/resources/recursive-type-and-interface.ts

Index

Properties

Properties

firstLayerPropertyA
Type string
firstLayerPropertyB
Type literal type
firstLayerPropertyC
Type string
import { AbstractBuildingBlock } from '@allianz/taly-core';

interface MyResource {
  firstLayerPropertyA: string;
  firstLayerPropertyB: {
    firstLayerSuBPropertyA: {
      firstLayerSubSubPropertyA: SecondLayerType;
    };
  };
  firstLayerPropertyC: string;
}

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

interface ThirdLayerInterface {
  thirdLayerPropertyA: number;
  thirdLayerPropertyB: {
    thirdLayerSubPropertyA: FourthLayerWithRecursionType;
  };
  thirdLayerPropertyC: number;
}

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

export class MyComponent extends AbstractBuildingBlock<undefined, MyResource> {}

results matching ""

    No results matching ""