@he0119/dsh-settings-sync 0.1.0 → 0.1.1
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/package.json
CHANGED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
export type SnapshotValue = boolean | number | string;
|
|
2
|
-
export interface SettingsFieldSource {
|
|
3
|
-
ns: string;
|
|
4
|
-
value: unknown;
|
|
5
|
-
secrets?: readonly {
|
|
6
|
-
path: readonly string[];
|
|
7
|
-
}[];
|
|
8
|
-
}
|
|
9
|
-
export declare function fieldSelector(selector: string): {
|
|
10
|
-
selector: string;
|
|
11
|
-
namespace: string;
|
|
12
|
-
path: string[];
|
|
13
|
-
};
|
|
14
|
-
export declare function scalar(value: unknown): value is SnapshotValue;
|
|
15
|
-
export declare function isSecretField(form: SettingsFieldSource, path: readonly string[]): boolean;
|
|
16
|
-
export declare function listSettingEntries(forms: readonly SettingsFieldSource[]): string[];
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
export interface SettingsSelection {
|
|
2
|
-
fields: readonly string[];
|
|
3
|
-
groupRules: readonly string[];
|
|
4
|
-
}
|
|
5
|
-
export declare function groupId([namespace, ...path]: readonly string[]): string;
|
|
6
|
-
export declare function selectionState({ fields, groupRules }: SettingsSelection): {
|
|
7
|
-
invalidRules: string[];
|
|
8
|
-
includesGroup: (id: string | undefined) => boolean;
|
|
9
|
-
includesField: (id: string) => boolean;
|
|
10
|
-
};
|
|
11
|
-
export declare function updateSelection(selection: SettingsSelection, target: string, checked: boolean): SettingsSelection;
|