interface Methods<T> {
    alter<const AlterationsT>(alterations: AlterationsT): WithAlterations<T, AlterationsT>;
    enable<const FlagsT>(flags: FlagsT): WithFlags<T, FlagsT>;
    set<const ValuesT>(values: ValuesT): WithValues<T, ValuesT>;
    with<const SelectionT>(...selection: SelectionT): Of<T, SelectionT>;
}

Type Parameters

Methods

  • Modify elements using ElementModifier.set.

    Type Parameters

    • const ValuesT extends
          | number
          | bigint
          | AttributeValues<T>
          | ((...args: any[]) => any) & object & {
              [K in string | number | symbol as [AttributesOf<T>[K]] extends [{
                      optional: true;
                  }]
                  ? never
                  : K]: AttributesOf<T>[K] extends {
                      schema: TlvSchema<T>;
                  }
                  ? T
                  : never
          } & {
              [K in string | number | symbol as [AttributesOf<T>[K]] extends [{
                      optional: true;
                  }]
                  ? K
                  : never]?: AttributesOf<T>[K] extends {
                      schema: TlvSchema<T>;
                  }
                  ? T
                  : never
          }
          | {
              [K in string | number | symbol]: RelaxTypes<AttributeValues<T>[K]>
          }

    Parameters

    Returns WithValues<T, ValuesT>