element-vir
Version:
Heroic. Reactive. Declarative. Type safe. Web components without compromise.
14 lines (13 loc) • 555 B
TypeScript
import { type CustomElementTagName } from '../custom-tag-name.js';
/**
* Base requirement for all CSS property names (like CSS var names).
*
* @category Internal
*/
export type BaseCssPropertyName<ElementTagName extends CustomElementTagName> = `${ElementTagName}-${string}`;
/**
* Asserts that all the given CSS properties for the given element are valid.
*
* @category Internal
*/
export declare function assertValidCssProperties(elementTagName: CustomElementTagName, cssProperties: Record<BaseCssPropertyName<CustomElementTagName>, any>): void;