@batpb/genart - v2.0.0-rc.3-alpha.2
    Preparing search index...

    Class Discriminator

    Static class methods for evaluating if objects implement various interfaces.

    2.0.0

    Index

    Constructors

    • Returns Discriminator

      • Discriminator is a static class and cannot be instantiated.

      2.0.0

    Methods

    • Does the given object implement the Palette interface?

      Parameters

      • object: unknown

        The object to check

      Returns object is Palette

      true if the given object implements the Palette interface, false if it does not.

      2.0.0

    • Does the given object implement the PaletteColor interface?

      Parameters

      • object: unknown

        The object to check

      Returns object is PaletteColor

      true if the given object implements the PaletteColor interface, false if it does not.

      2.0.0