@synergy-design-system/components
Version:
13 lines (12 loc) • 619 B
TypeScript
import type SynergyElement from '../../internal/synergy-element.js';
import { type ComponentNamesWithDefaultValues } from './base.js';
type Constructor<T = object> = new (...args: any[]) => T;
/**
* Global settings decorator for a synergy component
* Used in conjunction with the global settings event
*
* @param name The components name. This is used to get the default values for the component
* @returns Decorated class for usage with synergy components
*/
export declare function enableDefaultSettings(name: ComponentNamesWithDefaultValues): <T extends Constructor<SynergyElement>>(Proto: T) => T;
export {};