From c38159cb0df523a722051d0edbeb2a3406e900ca Mon Sep 17 00:00:00 2001 From: nesro Date: Wed, 14 Feb 2024 18:24:48 +0100 Subject: [PATCH] fix: Allow subTypes.name to be a number --- .../type-discriminator-descriptor.interface.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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.