@synergy-design-system/components
Version:
17 lines (16 loc) • 514 B
TypeScript
export type SynAttributeChange = {
attribute: string;
oldValue: unknown;
newValue: unknown;
};
/**
* An attribute changed event that is emitted when an attribute of a child element changes.
* Used together with the `emitEventForPropertyUpdates` decorator.
* @see src/internal/watchEvent.ts
*/
export type SynAttributesChangedEvent = CustomEvent<SynAttributeChange[]>;
declare global {
interface GlobalEventHandlersEventMap {
'syn-attributes-changed': SynAttributesChangedEvent;
}
}