lume
Version:
5 lines • 393 B
TypeScript
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;
};
//# sourceMappingURL=ElementWithBehaviors.d.ts.map