Skip to content

Commit 3a0e4a1

Browse files
committed
fix(lit-client): it should now retuen inferred types
1 parent f3c4ca7 commit 3a0e4a1

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

packages/lit-client/src/lib/LitClient/createLitClient.ts

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,7 @@ import {
5050
MintWithCustomAuthRequest,
5151
MintWithCustomAuthSchema,
5252
} from './schemas/MintWithCustomAuthSchema';
53-
import { LitClient, NagaNetworkModule } from './type';
54-
import { NagaLitClient } from './types/NagaLitClient.type';
53+
import { NagaNetworkModule } from './type';
5554

5655
const _logger = getChildLogger({
5756
module: 'createLitClient',
@@ -84,7 +83,7 @@ export const createLitClient = async ({
8483
network,
8584
}: {
8685
network: SupportedNetworkModule;
87-
}): Promise<LitClient> => {
86+
}) => {
8887
switch (network.id) {
8988
// -- (v8) Naga Network Module
9089
case 'naga':
@@ -144,7 +143,7 @@ export const createLitClient = async ({
144143
*/
145144
export const _createNagaLitClient = async (
146145
networkModule: NagaNetworkModule
147-
): Promise<NagaLitClient> => {
146+
) => {
148147
const _stateManager = await networkModule.createStateManager<
149148
Awaited<ReturnType<typeof orchestrateHandshake>>,
150149
NagaNetworkModule
@@ -702,7 +701,7 @@ export const _createNagaLitClient = async (
702701
return response;
703702
}
704703

705-
const litClient: NagaLitClient = {
704+
const litClient = {
706705
// This function is likely be used by another module to get the current context, eg. auth manager
707706
// only adding what is required by other modules for now.
708707
// maybe you will need connectionInfo: _stateManager.getLatestConnectionInfo(),

packages/lit-client/src/lib/LitClient/type.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import { NagaLocalModule } from '@lit-protocol/networks';
33
import { NagaDevModule } from '@lit-protocol/networks';
44
import { NagaStagingModule } from '@lit-protocol/networks';
5-
import { NagaLitClient } from './types/NagaLitClient.type';
5+
// import { NagaLitClient } from './types/NagaLitClient.type';
66

77
/**
88
* ========== All Network Modules ==========
@@ -27,5 +27,5 @@ export type NagaNetworkModule =
2727
/**
2828
* Union type for all possible Lit clients
2929
*/
30-
export type LitClient = NagaLitClient;
30+
// export type LitClient = NagaLitClient;
3131
// | DatilLitClient;

0 commit comments

Comments
 (0)