bun: improve types so it runs with bun

This commit is contained in:
Alex Gleason
2023-09-08 13:28:23 -05:00
parent b8e5fad334
commit b476d6441e
4 changed files with 7 additions and 5 deletions

View File

@ -50,7 +50,7 @@ export const fromLegacyColors = (soapboxConfig: SoapboxConfig): TailwindColorPal
/** Convert Soapbox Config into Tailwind colors */
export const toTailwind = (soapboxConfig: SoapboxConfig): SoapboxConfig => {
const colors: SoapboxColors = ImmutableMap(soapboxConfig.get('colors'));
const legacyColors: SoapboxColors = ImmutableMap(fromJS(fromLegacyColors(soapboxConfig)));
const legacyColors = ImmutableMap(fromJS(fromLegacyColors(soapboxConfig))) as SoapboxColors;
return soapboxConfig.set('colors', legacyColors.mergeDeep(colors));
};