StatichasStaticregisterRegisters a new discriminator and its associated validation function.
The registration details for the discriminator.
If the DiscriminatorRegistration.discriminator is not a non-empty single line trimmed string.
If the DiscriminatorRegistration.validator property is not a function.
If the DiscriminatorRegistration.discriminator is already registered.
Static registry for managing discriminators and their associated type guards. Discriminators are used to identify the type of a Discriminated object and validate it using a registered type guard function.
Since
0.1.0