starknet-types
Advanced tools
Comparing version 0.0.1 to 0.0.2
@@ -8,2 +8,8 @@ import { StarknetChainId } from '../common/constants'; | ||
} | ||
export type WalletEvents = { | ||
[E in keyof WalletEventHandlers]: { | ||
type: E; | ||
handler: WalletEventHandlers[E]; | ||
}; | ||
}[keyof WalletEventHandlers]; | ||
export type WalletEventListener = <E extends keyof WalletEventHandlers>(event: E, handleEvent: WalletEventHandlers[E]) => void; |
{ | ||
"name": "starknet-types", | ||
"version": "0.0.1", | ||
"publishConfig": { | ||
"access": "public" | ||
}, | ||
"version": "0.0.2", | ||
"description": "Shared TypeScript definitions for Starknet projects", | ||
@@ -18,2 +15,3 @@ "keywords": [ | ||
"license": "MIT", | ||
"main": "dist/index.js", | ||
"types": "dist-types/index.d.ts", | ||
@@ -24,2 +22,5 @@ "files": [ | ||
"sideEffects": false, | ||
"publishConfig": { | ||
"access": "public" | ||
}, | ||
"scripts": { | ||
@@ -26,0 +27,0 @@ "build": "tsc --build", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
8407
209