builder-settings-types 0.0.415 → 0.0.416
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/types/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Setting, SettingProps } from '../base/settings';
|
|
2
|
-
import { SettingGroup, TabSettingGroup } from '../base/settings-group/settingsGroup';
|
|
2
|
+
import { RootSettingGroup, SettingGroup, TabSettingGroup } from '../base/settings-group/settingsGroup';
|
|
3
3
|
import { HeaderTypographySettingSet } from '../groups/headerTypographySettingsSet';
|
|
4
4
|
import { AlignValue } from '../settings/align-settings/alignSettings';
|
|
5
5
|
import { GradientSetting } from '../settings/gradient-settings';
|
|
@@ -24,7 +24,7 @@ type HeaderTypographyValue<T> = T extends HeaderTypographySettingSet ? {
|
|
|
24
24
|
export type SettingsProps = SettingValue | ComplexSettingValue;
|
|
25
25
|
export type SettingInstance<T extends SettingsProps = SettingsProps> = Setting<T, SettingProps<T>>;
|
|
26
26
|
export type SettingChild<T extends SettingsProps = SettingsProps> = SettingInstance<T> | SettingGroup<Record<string, SettingChild<T>>>;
|
|
27
|
-
export type SettingsMap = Record<string, SettingChild | object
|
|
27
|
+
export type SettingsMap = Record<string, Exclude<SettingChild | object, RootSettingGroup<never>>>;
|
|
28
28
|
export type SettingGroupInstance<TSettings extends SettingsMap = SettingsMap> = SettingGroup<TSettings>;
|
|
29
29
|
export type ExtractSettingValue<T> = T extends Setting<infer V, infer P> ? V : T extends {
|
|
30
30
|
setValue(value: infer V | undefined): void;
|
package/package.json
CHANGED