1 | import { DiscriminatorDescriptor } from './type-discriminator-descriptor.interface';
|
2 | /**
|
3 | * Possible transformation options for the @Type decorator.
|
4 | */
|
5 | export interface TypeOptions {
|
6 | /**
|
7 | * Optional discriminator object, when provided the property value will be
|
8 | * initialized according to the specified object.
|
9 | */
|
10 | discriminator?: DiscriminatorDescriptor;
|
11 | /**
|
12 | * Indicates whether to keep the discriminator property on the
|
13 | * transformed object or not. Disabled by default.
|
14 | *
|
15 | * @default false
|
16 | */
|
17 | keepDiscriminatorProperty?: boolean;
|
18 | }
|