vmtpld-snap-test
v0.1.1
Published
The 'Hello, world!' of MetaMask Snaps, now written in TypeScript.
Downloads
1
Readme
TypeScript Example Snap
This Snap demonstrates how to develop a Snap with TypeScript.
Notes
- Babel is used for transpiling TypeScript to JavaScript, so when building with the CLI,
transpilationMode
must be set tolocalOnly
(default) orlocalAndDeps
. - For the global
wallet
type to work, you have to add the following to yourtsconfig.json
:{ "files": ["./node_modules/@metamask/snap-types/global.d.ts"] }