libs/nx/src/executors/introspection/compat/__test/example-library/src/other/get-form-correct-return-custom-type.ts
Properties |
customArrayProperty | |
Type |
CustomType[]
|
customProperty | |
Type |
CustomType
|
import { FormGroupTyped } from '@allianz/taly-common';
import { AbstractBuildingBlock } from '@allianz/taly-core';
type CustomType = 'VariantOne' | 'VariantTwo ' | 'VariantThree';
interface FormModel {
customProperty: CustomType;
customArrayProperty: CustomType[];
}
export class GetFormCorrectReturnCustomType extends AbstractBuildingBlock {
form!: FormGroupTyped<FormModel>;
override getForm() {
return this.form as FormGroupTyped<FormModel>;
}
}