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

@ -5,11 +5,8 @@
import { assert } from 'chai';
import {
MaybeAsyncIterable,
concat,
wrapPromise,
} from '../../util/asyncIterables';
import type { MaybeAsyncIterable } from '../../util/asyncIterables';
import { concat, wrapPromise } from '../../util/asyncIterables';
describe('async iterable utilities', () => {
describe('concat', () => {

View file

@ -2,7 +2,7 @@
// SPDX-License-Identifier: AGPL-3.0-only
import { assert } from 'chai';
import { ConversationType } from '../../state/ducks/conversations';
import type { ConversationType } from '../../state/ducks/conversations';
import { getDefaultConversation } from '../helpers/getDefaultConversation';
import { getGroupMemberships } from '../../util/getGroupMemberships';

View file

@ -4,9 +4,9 @@
import { assert } from 'chai';
import sinon from 'sinon';
import type { RetryItemType } from '../../util/retryPlaceholders';
import {
getDeltaIntoPast,
RetryItemType,
RetryPlaceholders,
STORAGE_KEY,
} from '../../util/retryPlaceholders';

View file

@ -6,10 +6,8 @@
import { assert } from 'chai';
import * as Bytes from '../../Bytes';
import {
LocalUserDataType,
sessionRecordToProtobuf,
} from '../../util/sessionTranslation';
import type { LocalUserDataType } from '../../util/sessionTranslation';
import { sessionRecordToProtobuf } from '../../util/sessionTranslation';
const getRecordCopy = (record: any): any => JSON.parse(JSON.stringify(record));