Skip to content

Commit

Permalink
fix: fix export types
Browse files Browse the repository at this point in the history
  • Loading branch information
HoangNguyen17193 committed Nov 4, 2024
1 parent 32a8183 commit 299f256
Show file tree
Hide file tree
Showing 9 changed files with 20 additions and 15 deletions.
4 changes: 2 additions & 2 deletions packages/connect/package.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"name": "@sky-mavis/tanto-connect",
"version": "0.0.8",
"version": "0.0.9",
"description": "Tanto Connect",
"main": "dist/cjs/index.js",
"module": "dist/mjs/index.js",
"types": "./dist/types/index.d.ts",
"types": "dist/types/index.d.ts",
"scripts": {
"build": "rm -rf dist && rollup -c",
"dev": "rollup -c -w",
Expand Down
2 changes: 1 addition & 1 deletion packages/connect/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"jsx": "react",
"sourceMap": false,
"declarationDir": "dist/types",
// "rootDir": "src",
"rootDir": "src",
"resolveJsonModule": true,
"allowSyntheticDefaultImports": true,
"importHelpers": true,
Expand Down
2 changes: 1 addition & 1 deletion packages/wagmi/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@sky-mavis/tanto-wagmi",
"type": "module",
"version": "0.0.4",
"version": "0.0.5",
"description": "Tanto Wagmi",
"main": "dist/cjs/index.js",
"types": "./dist/types/index.d.ts",
Expand Down
5 changes: 1 addition & 4 deletions packages/wagmi/src/connectors/roninWallet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,7 @@ import { ConnectorEvent, IConnectResult, RoninWalletConnector } from '@sky-mavis
import { createConnector } from '@wagmi/core';
import { getAddress } from 'viem';

type ConnectParams = {
chainId?: number;
isReconnecting?: boolean;
};
import { ConnectParams } from '../types';

export function roninWallet() {
const connector = new RoninWalletConnector();
Expand Down
14 changes: 8 additions & 6 deletions packages/wagmi/src/connectors/waypoint.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
import { ConnectorEvent, IConnectResult, WaypointConnector } from '@sky-mavis/tanto-connect';
import { IWaypointProviderConfigs, requestWaypointProvider } from '@sky-mavis/tanto-connect/src';
import {
ConnectorEvent,
IConnectResult,
IWaypointProviderConfigs,
requestWaypointProvider,
WaypointConnector,
} from '@sky-mavis/tanto-connect';
import { createConnector } from '@wagmi/core';
import { getAddress } from 'viem';

type ConnectParams = {
chainId?: number;
isReconnecting?: boolean;
};
import { ConnectParams } from '../types';

export function waypoint(params: IWaypointProviderConfigs) {
const provider = requestWaypointProvider(params);
Expand Down
1 change: 1 addition & 0 deletions packages/wagmi/src/index.ts
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
export * from './connectors';
export * from './types';
4 changes: 4 additions & 0 deletions packages/wagmi/src/types/connectParams.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
export interface ConnectParams {
chainId?: number;
isReconnecting?: boolean;
}
1 change: 1 addition & 0 deletions packages/wagmi/src/types/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from './connectParams';
2 changes: 1 addition & 1 deletion packages/wagmi/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"jsx": "react",
"sourceMap": false,
"declarationDir": "dist/types",
// "rootDir": "src",
"rootDir": "src",
"resolveJsonModule": true,
"allowSyntheticDefaultImports": true,
"importHelpers": true,
Expand Down

0 comments on commit 299f256

Please sign in to comment.