Skip to content

Commit

Permalink
Bump typescript version to possibly provide better type safety
Browse files Browse the repository at this point in the history
  • Loading branch information
KaffinPX committed Sep 14, 2024
1 parent 410a2eb commit 9bb15ce
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 3 deletions.
Binary file modified bun.lockb
Binary file not shown.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"postcss": "^8.4.32",
"prettier": "3.1.1",
"tailwindcss": "^3.3.6",
"typescript": "^5.3.3",
"typescript": "^5.6.2",
"vite": "^5.1.1"
},
"dependencies": {
Expand Down
2 changes: 1 addition & 1 deletion src/wallet/messaging/protocol.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export interface Request<M extends keyof ResponseMappings = keyof ResponseMappin
params: RequestMappings[M]
}

export interface ResponseMappings {
export interface ResponseMappings { // boolean => void tbh
'wallet:status': Status
'wallet:create': string
'wallet:import': boolean
Expand Down
2 changes: 1 addition & 1 deletion src/wallet/messaging/wallet/notifier.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export default class Notifications {
node.on('connection', (status) => this.handleEvent('node:connection', status))
node.on('network', (networkId) => this.handleEvent('node:network', networkId))
account.on('balance', (balance) => this.handleEvent('account:balance', balance))
account.addresses.on('addresses', (addresses) => this.handleEvent('account:addresses', addresses))
account['addresses'].on('addresses', (addresses) => this.handleEvent('account:addresses', addresses))
provider.on('connection', (url) => this.handleEvent('provider:connection', url))
}

Expand Down

0 comments on commit 9bb15ce

Please sign in to comment.