File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
packages/compass-preferences-model/src Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -92,7 +92,7 @@ async function loadGlobalPreferences(
9292const cliProps = Object . entries ( allPreferencesProps ) . filter (
9393 ( [ , definition ] ) => definition . cli
9494) ;
95- type CliPropType = typeof cliProps [ number ] [ 1 ] [ 'type' ] ;
95+ type CliPropType = ( typeof cliProps ) [ number ] [ 1 ] [ 'type' ] ;
9696function getCliPropNamesByType ( type : CliPropType ) : string [ ] {
9797 return [
9898 ...new Set (
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ import {
1717import { Link } from '@mongodb-js/compass-components' ;
1818
1919export const THEMES_VALUES = [ 'DARK' , 'LIGHT' , 'OS_THEME' ] as const ;
20- export type THEMES = typeof THEMES_VALUES [ number ] ;
20+ export type THEMES = ( typeof THEMES_VALUES ) [ number ] ;
2121
2222const enableDbAndCollStatsDescription : React . ReactNode = (
2323 < >
@@ -41,7 +41,7 @@ export const SORT_ORDER_VALUES = [
4141 '{ _id: 1 }' ,
4242 '{ _id: -1 }' ,
4343] as const ;
44- export type SORT_ORDERS = typeof SORT_ORDER_VALUES [ number ] ;
44+ export type SORT_ORDERS = ( typeof SORT_ORDER_VALUES ) [ number ] ;
4545
4646export type PermanentFeatureFlags = {
4747 showDevFeatureFlags ?: boolean ;
@@ -1260,7 +1260,7 @@ export function getPreferencesValidator() {
12601260 validator ,
12611261 ] )
12621262 ) as {
1263- [ K in keyof typeof storedUserPreferencesProps ] : typeof storedUserPreferencesProps [ K ] [ 'validator' ] ;
1263+ [ K in keyof typeof storedUserPreferencesProps ] : ( typeof storedUserPreferencesProps ) [ K ] [ 'validator' ] ;
12641264 } ;
12651265
12661266 return z . object ( preferencesPropsValidator ) ;
You can’t perform that action at this time.
0 commit comments