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
721 changed files with 2037 additions and 1947 deletions
@@ -5,7 +5,8 @@ import { assert } from 'chai';
import { actions } from '../../../state/ducks/audioPlayer';
import { noopAction } from '../../../state/ducks/noop';
import { isPaused } from '../../../state/selectors/audioPlayer';
import { StateType, reducer as rootReducer } from '../../../state/reducer';
import type { StateType } from '../../../state/reducer';
import { reducer as rootReducer } from '../../../state/reducer';
describe('state/selectors/audioPlayer', () => {
const getEmptyRootState = (): StateType => {
@@ -16,12 +16,12 @@ import {
getIncomingCall,
isInCall,
} from '../../../state/selectors/calling';
import {
getEmptyState,
import type {
CallingStateType,
DirectCallStateType,
GroupCallStateType,
} from '../../../state/ducks/calling';
import { getEmptyState } from '../../../state/ducks/calling';
describe('state/selectors/calling', () => {
const getEmptyRootState = () => rootReducer(undefined, noopAction());
@@ -5,11 +5,11 @@ import { assert } from 'chai';
import * as moment from 'moment';
import { v4 as uuid } from 'uuid';
import { SendStatus } from '../../../messages/MessageSendState';
import {
import type {
MessageAttributesType,
ShallowChallengeError,
} from '../../../model-types.d';
import { ConversationType } from '../../../state/ducks/conversations';
import type { ConversationType } from '../../../state/ducks/conversations';
import {
canDeleteForEveryone,