Formwright
    Preparing search index...

    Type Alias OptionArgs<T>

    OptionArgs:
        | OptionAccessors & { options?: readonly T[]; storeKey?: false }
        | OptionAccessors & { options?: readonly unknown[]; storeKey: true }

    The args of a control that picks from @options, storing values of type T. The options are T themselves, unless @storeKey stores each option's key: then they can be anything.

    Type Parameters

    • T = unknown

    Type Declaration

    • OptionAccessors & { options?: readonly T[]; storeKey?: false }
    • OptionAccessors & { options?: readonly unknown[]; storeKey: true }
      • Optionaloptions?: readonly unknown[]
      • storeKey: true

        Store the option's key instead of the option itself.