Prefer import type
when importing types
This commit is contained in:
parent
0f635af8a9
commit
74fde10ff5
721 changed files with 2037 additions and 1947 deletions
|
@ -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', () => {
|
||||
|
|
|
@ -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';
|
||||
|
|
|
@ -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';
|
||||
|
|
|
@ -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));
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue