UNPKG

lume

Version:

Build next-level interactive web applications.

9 lines (7 loc) 343 B
export type ElementWithBehaviors< BehaviorTypes, SelectedBehaviorProperties extends keyof BehaviorTypes, > = WithStringValues<Partial<Pick<BehaviorTypes, SelectedBehaviorProperties>>> export type WithStringValues<Type extends object> = { [Property in keyof Type]: Type[Property] extends string ? Type[Property] : Type[Property] | string }