Type alias BindingIncludes<T>

BindingIncludes<T>: [operator: "in", binding1: Binding<T>, binding2: T extends string
    ? Binding<string[]>
    : T extends number
        ? Binding<number[]>
        : never]

Checks if the first parameter (string or number) is a part of the second parameter (string[] or number[]).

Type Parameters

  • T

Example

{
"id": "MyConfigField",
"type": "text",
},
{
// ...
"visible": ["in", "foo", ["value", "MyConfigField"]],
},