Closed TucksonDev closed 1 year ago
First attempt to move one tutorial to TS (eth deposit). I only changed the require instructions to imports, and had to cast the first config variable to string.
require
imports
It looks like the result when compiling is quite good. You can compile the file with yarn build , or see this gist => https://gist.github.com/TucksonDev/22efa85dc7fd0f0546b3a590bb9e496d
yarn build
I added the needed packages to this tutorial's package.json, but ideally we would have them at the root level if we change all tutorials to TS.
LGTM
Closing this one for now
First attempt to move one tutorial to TS (eth deposit). I only changed the
require
instructions toimports
, and had to cast the first config variable to string.It looks like the result when compiling is quite good. You can compile the file with
yarn build
, or see this gist => https://gist.github.com/TucksonDev/22efa85dc7fd0f0546b3a590bb9e496dI added the needed packages to this tutorial's package.json, but ideally we would have them at the root level if we change all tutorials to TS.