Skip to content

Commit

Permalink
Merge pull request #15 from MultipleChain/beycan
Browse files Browse the repository at this point in the history
wrapper exported default
  • Loading branch information
0xBeycan authored May 24, 2024
2 parents d2da2e4 + d17b8b8 commit 523faf3
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion packages/wrapper/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@multiplechain/wrapper",
"version": "0.1.0",
"version": "0.1.2",
"type": "module",
"main": "dist/index.cjs",
"module": "dist/index.es.js",
Expand Down
5 changes: 3 additions & 2 deletions packages/wrapper/src/browser/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { Wrapper as BaseWrapper } from '../index.ts'
// eslint-disable-next-line filenames/match-exported
import BaseWrapper from '../index.ts'
import type {
WalletInterface,
ProviderInterface,
Expand All @@ -18,7 +19,7 @@ export interface BrowserType<AdapterList = unknown, WalletProvider = unknown> {
adapters: WalletAdapterListType<ProviderInterface, WalletProvider> & AdapterList
}

export class Wrapper<
export default class Wrapper<
T extends Record<string, any>,
BrowserType = T[keyof T]['browser']
> extends BaseWrapper<T> {
Expand Down
3 changes: 2 additions & 1 deletion packages/wrapper/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
export class Wrapper<T extends Record<string, any>> {
// eslint-disable-next-line filenames/match-exported
export default class Wrapper<T extends Record<string, any>> {
protected currentNetwork?: T[keyof T]

constructor(private readonly networkPackages: T) {}
Expand Down

0 comments on commit 523faf3

Please sign in to comment.