Skip to content

Commit c7c4477

Browse files
authored
fix: allow subTypes.name to be a number in DiscriminatorDescriptor (#1683)
1 parent fb78643 commit c7c4477

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/interfaces/decorator-options/type-discriminator-descriptor.interface.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export interface DiscriminatorDescriptor {
1818
/**
1919
* Name of the type.
2020
*/
21-
name: string;
21+
name: string | number;
2222

2323
/**
2424
* A class constructor which can be used to create the object.

0 commit comments

Comments
 (0)