mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-04-24 10:28:03 +01:00
Prefer import type when importing types
This commit is contained in:
@@ -2,7 +2,8 @@
|
||||
// SPDX-License-Identifier: AGPL-3.0-only
|
||||
|
||||
import { sample } from 'lodash';
|
||||
import { AvatarColors, AvatarColorType } from '../../types/Colors';
|
||||
import type { AvatarColorType } from '../../types/Colors';
|
||||
import { AvatarColors } from '../../types/Colors';
|
||||
|
||||
export function getRandomColor(): AvatarColorType {
|
||||
return sample(AvatarColors) || AvatarColors[0];
|
||||
|
||||
Reference in New Issue
Block a user