@cosmwasm/ts-codegen 0.35.1 → 0.35.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +9 -5
- package/package.json +2 -2
package/README.md
CHANGED
@@ -317,16 +317,20 @@ export default function YourComponent() {
|
|
317
317
|
};
|
318
318
|
```
|
319
319
|
|
320
|
-
|
320
|
+
#### Use Contracts Provider Babel/TSC config
|
321
|
+
|
322
|
+
If you're using Babel, please make sure include `'@babel/preset-react'` in devDeps and presets in `.babelrc.js`:
|
321
323
|
|
322
324
|
```js
|
323
325
|
presets: [
|
324
|
-
|
325
|
-
|
326
|
-
|
327
|
-
|
326
|
+
'@babel/typescript',
|
327
|
+
'@babel/env',
|
328
|
+
'@babel/preset-react',
|
329
|
+
]
|
328
330
|
```
|
329
331
|
|
332
|
+
For `tsc`, you should set the `jsx` option to `'react'` in your `tsconfig.json`.
|
333
|
+
|
330
334
|
#### Use Contracts Hooks Usage
|
331
335
|
|
332
336
|
Once enabled, you can get contracts very simply:
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@cosmwasm/ts-codegen",
|
3
|
-
"version": "0.35.
|
3
|
+
"version": "0.35.2",
|
4
4
|
"description": "@cosmwasm/ts-codegen converts your CosmWasm smart contracts into dev-friendly TypeScript classes so you can focus on shipping code.",
|
5
5
|
"author": "Dan Lynch <pyramation@gmail.com>",
|
6
6
|
"homepage": "https://github.com/cosmwasm/ts-codegen",
|
@@ -98,5 +98,5 @@
|
|
98
98
|
"shelljs": "0.8.5",
|
99
99
|
"wasm-ast-types": "^0.26.1"
|
100
100
|
},
|
101
|
-
"gitHead": "
|
101
|
+
"gitHead": "6f697e9e9b4f816b793cd286642b3ece3d916779"
|
102
102
|
}
|