MCPcopy Index your code
hub / github.com/coder/coder / legacyAutoToSync

Function legacyAutoToSync

site/src/theme/index.ts:76–83  ·  view source on GitHub ↗
(
	preference: string | undefined,
)

Source from the content-addressed store, hash-verified

74};
75
76export const legacyAutoToSync = (
77 preference: string | undefined,
78): LegacyAutoSync | null => {
79 if (!preference) {
80 return null;
81 }
82 return LEGACY_AUTO_SYNC[preference] ?? null;
83};
84
85export const resolveThemeName = (
86 preference: string | undefined,

Callers 2

colorblind.test.tsFile · 0.85
migrateLegacyPreferenceFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected