AutoMovie API
    Preparing search index...
    • One of a producer's closed alternatives, refused with the alternatives when it is not one of them.

      A parameter typed by a closed union is checked by the compiler; this is the same check for a caller that passes text it read at run time.

      Type Parameters

      • Value extends string

      Parameters

      • archetype: string

        The producer's name.

      • axis: string

        The parameter's name.

      • value: Value

        The value given.

      • alternatives: readonly Value[]

        The accepted values.

      Returns Value

      The value.

      When the value is not one of the alternatives.