Skip to content

Commit d22bea9

Browse files
remove selectable values code
1 parent c1ed3d9 commit d22bea9

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

packages/compass-preferences-model/src/preferences-schema.ts

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,6 @@ type PreferenceDefinition<K extends keyof AllPreferences> = {
215215
: false
216216
: boolean;
217217

218-
selectableValues?: ReadonlyArray<{ value: string; label: string }>;
219218
validator: z.Schema<
220219
AllPreferences[K],
221220
z.ZodTypeDef,
@@ -1211,17 +1210,3 @@ export function getSettingDescription<
12111210
type,
12121211
};
12131212
}
1214-
1215-
export function getSettingSelectableValues<
1216-
Name extends Exclude<keyof AllPreferences, keyof InternalUserPreferences>
1217-
>(
1218-
name: Name
1219-
): Pick<PreferenceDefinition<Name>, 'selectableValues'> & { type: unknown } {
1220-
const { selectableValues, type } = allPreferencesProps[
1221-
name
1222-
] as PreferenceDefinition<Name>;
1223-
return {
1224-
selectableValues,
1225-
type,
1226-
};
1227-
}

0 commit comments

Comments
 (0)