Prefer import type when importing types

This commit is contained in:
Evan Hahn 2021-10-26 14:15:33 -05:00 committed by GitHub
parent 0f635af8a9
commit 74fde10ff5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
721 changed files with 2037 additions and 1947 deletions

View file

@ -1,7 +1,8 @@
// Copyright 2021 Signal Messenger, LLC
// SPDX-License-Identifier: AGPL-3.0-only
import React, { FunctionComponent } from 'react';
import type { FunctionComponent } from 'react';
import React from 'react';
import { WidthBreakpoint } from '../../components/_util';
type PropsType = {

View file

@ -3,7 +3,7 @@
import { v4 as generateUuid } from 'uuid';
import { sample } from 'lodash';
import { ConversationType } from '../../state/ducks/conversations';
import type { ConversationType } from '../../state/ducks/conversations';
import { getRandomColor } from './getRandomColor';
const FIRST_NAMES = [

View file

@ -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];