diff --git a/src/interfaces/decorator-options/type-discriminator-descriptor.interface.ts b/src/interfaces/decorator-options/type-discriminator-descriptor.interface.ts index 04aae0ee6..cc1fe3387 100644 --- a/src/interfaces/decorator-options/type-discriminator-descriptor.interface.ts +++ b/src/interfaces/decorator-options/type-discriminator-descriptor.interface.ts @@ -18,7 +18,7 @@ export interface DiscriminatorDescriptor { /** * Name of the type. */ - name: string; + name: string | number; /** * A class constructor which can be used to create the object.