@knyt/luthier
Version:
A library for building standardized, type-safe native web components with full SSR and hydration support.
11 lines (10 loc) • 392 B
JavaScript
import { resolveAttributeName } from "./resolveAttributeName";
export function convertPropertiesDefinition(propertiesDefinition) {
return Object.entries(propertiesDefinition).map(([propertyName, configPartial]) => {
return {
...configPartial,
propertyName,
attributeName: resolveAttributeName(configPartial.attributeName),
};
});
}