Type alias AlpineBindingContext<T, Keys, HiddenKeys>

AlpineBindingContext<T, Keys, HiddenKeys>: Record<string, any> | Pick<T, Keys> & {
    [K in HiddenKeys]: string | number | boolean
}

Type used to define properties that will exist on an x-bind object at runtime.

Type Parameters

  • T extends AlpineComponent

    The component type

  • Keys extends keyof T = keyof T

    The properties to expose to the context (defaults to everything accessible with keyof)

  • HiddenKeys extends string = ""

    Define accessible properties (protected/private) that are not included by keyof

Generated using TypeDoc v0.25.1