Skip to content

Commit ad528eb

Browse files
committed
Fix tsconfig (module) in identity
1 parent 66b112a commit ad528eb

File tree

9 files changed

+56
-13
lines changed

9 files changed

+56
-13
lines changed

packages/identity/tsconfig.build.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"compilerOptions": {
44
"strict": true,
55
"target": "ES2020",
6-
"module": "ES2022",
6+
// "module": "ES2022",
77
"rootDir": "./src",
88
"outDir": "./lib",
99
"typeRoots": [

packages/identity/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"compilerOptions": {
44
"outDir": "./lib",
55
"target": "ES2020",
6-
"module": "ES2022",
6+
// "module": "ES2022",
77
"strict": true,
88
"typeRoots": [
99
"../@types",

packages/state-manager/src/sagas/appConnection/connection.transform.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@ import { StoreKeys } from '../store.keys'
33
import { ConnectionState } from './connection.slice'
44

55
export const ConnectionTransform = createTransform(
6-
(inboundState: ConnectionState, _key) => {
6+
(inboundState: ConnectionState, _key: any) => {
77
return { ...inboundState }
88
},
9-
(outboundState: ConnectionState, _key) => {
9+
(outboundState: ConnectionState, _key: any) => {
1010
return {
1111
...outboundState,
1212
torBootstrapProcess: 'Bootstrapped 0% (starting)',

packages/state-manager/src/sagas/files/files.transform.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@ import { isDefined } from '@quiet/common'
66
import { DownloadState, DownloadStatus } from '@quiet/types'
77

88
export const FilesTransform = createTransform(
9-
(inboundState: FilesState, _key) => {
9+
(inboundState: FilesState, _key: any) => {
1010
return { ...inboundState }
1111
},
12-
(outboundState: FilesState, _key) => {
12+
(outboundState: FilesState, _key: any) => {
1313
const downloadStatuses = Object.values(outboundState.downloadStatus.entities).filter(isDefined)
1414
const updatedStatuses: DownloadStatus[] = downloadStatuses.reduce((result: DownloadStatus[], status) => {
1515
const downloadState = status.downloadState

packages/state-manager/src/sagas/messages/messages.transform.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ import { messageSendingStatusAdapter } from './messages.adapter.ts'
44
import { MessagesState } from './messages.slice'
55

66
export const MessagesTransform = createTransform(
7-
(inboundState: MessagesState, _key) => {
7+
(inboundState: MessagesState, _key: any) => {
88
return { ...inboundState }
99
},
10-
(outboundState: MessagesState, _key) => {
10+
(outboundState: MessagesState, _key: any) => {
1111
return {
1212
...outboundState,
1313
publicKeyMapping: {},

packages/state-manager/src/sagas/publicChannels/createGeneralChannel/createGeneralChannel.saga.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export function* createGeneralChannelSaga(): Generator {
1515
}
1616
log(`Creating general channel for ${identity.nickname}`)
1717

18-
const timestamp = yield* call(getChannelTimestamp)
18+
const timestamp: number = yield* call(getChannelTimestamp)
1919

2020
const channel: PublicChannel = {
2121
name: 'general',

packages/state-manager/src/sagas/publicChannels/publicChannels.transform.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
import { createTransform } from 'redux-persist'
22
import { StoreKeys } from '../store.keys'
3-
import { publicChannelsAdapter, publicChannelsStatusAdapter, publicChannelsSubscriptionsAdapter } from './publicChannels.adapter'
3+
import { publicChannelsSubscriptionsAdapter } from './publicChannels.adapter'
44
import { PublicChannelsState } from './publicChannels.slice'
55

66
export const PublicChannelsTransform = createTransform(
7-
(inboundState: PublicChannelsState, _key) => {
7+
(inboundState: PublicChannelsState, _key: any) => {
88
return { ...inboundState }
99
},
10-
(outboundState: PublicChannelsState, _key) => {
10+
(outboundState: PublicChannelsState, _key: any) => {
1111
return {
1212
...outboundState,
1313
currentChannelAddress: 'general',

packages/state-manager/src/sagas/publicChannels/sendNewUserInfoMessage/sendNewUserInfoMessage.saga.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ import { communitiesSelectors } from '../../communities/communities.selectors'
1515

1616
import { MAIN_CHANNEL } from '../../../constants'
1717
import { MessageType, WriteMessagePayload } from '@quiet/types'
18+
import { Certificate } from 'pkijs'
1819

1920
export function* sendNewUserInfoMessageSaga(
2021
action: PayloadAction<ReturnType<typeof publicChannelsActions.sendNewUserInfoMessage>['payload']>
@@ -39,7 +40,7 @@ export function* sendNewUserInfoMessageSaga(
3940
const uniqueCertificates = [...new Set(newCertificates)]
4041

4142
for (const cert of uniqueCertificates) {
42-
const rootCa = yield* call(loadCertificate, cert)
43+
const rootCa: Certificate = yield* call(loadCertificate, cert)
4344
const user = yield* call(getCertFieldValue, rootCa, CertFieldsTypes.nickName)
4445

4546
// Do not send message about yourself

packages/state-manager/tscheck.txt

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
2+
> @quiet/[email protected] build
3+
> tsc -p tsconfig.build.json
4+
5+
src/sagas/appConnection/connection.selectors.test.ts(13,27): error TS2307: Cannot find module '@quiet/types' or its corresponding type declarations.
6+
src/sagas/communities/communities.adapter.ts(1,27): error TS2307: Cannot find module '@quiet/types' or its corresponding type declarations.
7+
src/sagas/communities/communities.selectors.test.ts(11,27): error TS2307: Cannot find module '@quiet/types' or its corresponding type declarations.
8+
src/sagas/communities/communities.slice.ts(13,27): error TS2307: Cannot find module '@quiet/types' or its corresponding type declarations.
9+
src/sagas/communities/communities.types.ts(1,27): error TS2307: Cannot find module '@quiet/types' or its corresponding type declarations.
10+
src/sagas/communities/createNetwork/createNetwork.saga.test.ts(14,27): error TS2307: Cannot find module '@quiet/types' or its corresponding type declarations.
11+
src/sagas/communities/createNetwork/createNetwork.saga.ts(10,27): error TS2307: Cannot find module '@quiet/types' or its corresponding type declarations.
12+
src/sagas/communities/launchCommunity/launchCommunity.saga.test.ts(85,9): error TS2578: Unused '@ts-expect-error' directive.
13+
src/sagas/communities/launchCommunity/launchCommunity.saga.test.ts(148,9): error TS2578: Unused '@ts-expect-error' directive.
14+
src/sagas/communities/responseCreateNetwork/responseCreateNetwork.saga.test.ts(13,27): error TS2307: Cannot find module '@quiet/types' or its corresponding type declarations.
15+
src/sagas/communities/updateCommunity/updateCommunity.saga.test.ts(9,27): error TS2307: Cannot find module '@quiet/types' or its corresponding type declarations.
16+
src/sagas/errors/errors.selectors.test.ts(9,27): error TS2307: Cannot find module '@quiet/types' or its corresponding type declarations.
17+
src/sagas/errors/handleErrors/handleErrors.saga.test.ts(10,25): error TS2307: Cannot find module '@quiet/types' or its corresponding type declarations.
18+
src/sagas/files/autoDownloadFiles/autoDownloadFiles.saga.test.ts(22,27): error TS2307: Cannot find module '@quiet/types' or its corresponding type declarations.
19+
src/sagas/files/broadcastHostedFile/broadcastHostedFile.saga.test.ts(19,27): error TS2307: Cannot find module '@quiet/types' or its corresponding type declarations.
20+
src/sagas/files/cancelDownload/cancelDownload.saga.test.ts(16,27): error TS2307: Cannot find module '@quiet/types' or its corresponding type declarations.
21+
src/sagas/files/downloadFile/downloadFileSaga.test.ts(18,27): error TS2307: Cannot find module '@quiet/types' or its corresponding type declarations.
22+
src/sagas/files/resetTransferSpeed/resetTransferSpeed.saga.test.ts(17,27): error TS2307: Cannot find module '@quiet/types' or its corresponding type declarations.
23+
src/sagas/files/updateMessageMedia/updateMessageMedia.test.ts(17,27): error TS2307: Cannot find module '@quiet/types' or its corresponding type declarations.
24+
src/sagas/files/uploadFile/uploadFile.saga.test.ts(25,27): error TS2307: Cannot find module '@quiet/types' or its corresponding type declarations.
25+
src/sagas/messages/checkForMessages/checkForMessages.saga.test.ts(15,27): error TS2307: Cannot find module '@quiet/types' or its corresponding type declarations.
26+
src/sagas/messages/incomingMessages/incomingMessages.saga.test.ts(22,27): error TS2307: Cannot find module '@quiet/types' or its corresponding type declarations.
27+
src/sagas/messages/manageCache/extendChannelCache.saga.test.ts(22,27): error TS2307: Cannot find module '@quiet/types' or its corresponding type declarations.
28+
src/sagas/messages/manageCache/resetChannelCache.saga.test.ts(21,27): error TS2307: Cannot find module '@quiet/types' or its corresponding type declarations.
29+
src/sagas/messages/messages.selectors.test.ts(11,27): error TS2307: Cannot find module '@quiet/types' or its corresponding type declarations.
30+
src/sagas/messages/sendDeletionMessage/sendDeletionMessage.saga.test.ts(16,27): error TS2307: Cannot find module '@quiet/types' or its corresponding type declarations.
31+
src/sagas/messages/sendMessage/sendMessage.saga.test.ts(28,27): error TS2307: Cannot find module '@quiet/types' or its corresponding type declarations.
32+
src/sagas/publicChannels/channelDeletionResponse/channelDeletionResponse.saga.test.ts(16,27): error TS2307: Cannot find module '@quiet/types' or its corresponding type declarations.
33+
src/sagas/publicChannels/channelsReplicated/channelsReplicated.saga.test.ts(17,27): error TS2307: Cannot find module '@quiet/types' or its corresponding type declarations.
34+
src/sagas/publicChannels/createGeneralChannel/createGeneralChannel.saga.test.ts(15,27): error TS2307: Cannot find module '@quiet/types' or its corresponding type declarations.
35+
src/sagas/publicChannels/createGeneralChannel/sendInitialChannelMessage.saga.test.ts(17,27): error TS2307: Cannot find module '@quiet/types' or its corresponding type declarations.
36+
src/sagas/publicChannels/deleteChannel/deleteChannel.saga.test.ts(20,27): error TS2307: Cannot find module '@quiet/types' or its corresponding type declarations.
37+
src/sagas/publicChannels/markUnreadChannels/markUnreadChannels.saga.test.ts(3,22): error TS2724: '"../../.."' has no exported member named 'Community'. Did you mean 'CommunityId'?
38+
src/sagas/publicChannels/publicChannels.selectors.test.ts(25,27): error TS2307: Cannot find module '@quiet/types' or its corresponding type declarations.
39+
src/sagas/publicChannels/updateNewestMessage/updateNewestMessage.saga.test.ts(3,22): error TS2724: '"../../.."' has no exported member named 'Community'. Did you mean 'CommunityId'?
40+
src/sagas/users/users.selectors.test.ts(7,3): error TS2459: Module '"../communities/communities.slice"' declares 'Community' locally, but it is not exported.
41+
src/sagas/users/users.slice.test.ts(3,48): error TS2459: Module '"../communities/communities.slice"' declares 'Community' locally, but it is not exported.
42+
src/types.ts(18,10): error TS2459: Module '"./sagas/communities/communities.slice"' declares 'Community' locally, but it is not exported.

0 commit comments

Comments
 (0)