@blwat/utils - v0.1.0-alpha.2
    Preparing search index...

    Class DiscriminatorRegistry

    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.

    0.1.0

    Index

    Methods

    Methods

    • Checks if a discriminator is already registered.

      Parameters

      • discriminator: string

        The discriminator value to check.

      Returns boolean

      • true if the discriminator is registered, false otherwise.

      0.1.0