@cosmwasm/ts-codegen 0.5.7 → 0.6.1

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.
@@ -56,6 +56,11 @@ var _default = /*#__PURE__*/function () {
56
56
  name: 'v4',
57
57
  message: 'Use react-query v4?',
58
58
  "default": false
59
+ }, {
60
+ type: 'confirm',
61
+ name: 'mutations',
62
+ message: 'Geneate useMutation hooks? Must be used with v4.',
63
+ "default": false
59
64
  }];
60
65
  _context.next = 3;
61
66
  return (0, _prompt.prompt)(questions, argv);
package/main/generate.js CHANGED
@@ -33,6 +33,8 @@ var _clean = require("./clean");
33
33
 
34
34
  var _utils = require("./utils");
35
35
 
36
+ var _imports = require("./imports");
37
+
36
38
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
37
39
 
38
40
  function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
@@ -58,17 +60,13 @@ var _default = /*#__PURE__*/function () {
58
60
  ReadOnlyInstance = null;
59
61
  body = [];
60
62
  body.push(w.importStmt(['CosmWasmClient', 'ExecuteResult', 'SigningCosmWasmClient'], '@cosmjs/cosmwasm-stargate'));
61
-
62
- if (typeHash.hasOwnProperty('Coin')) {
63
- body.push(w.importStmt(['StdFee'], '@cosmjs/amino'));
64
- } else {
65
- body.push(w.importStmt(['Coin', 'StdFee'], '@cosmjs/amino'));
66
- } // TYPES
67
-
63
+ body.push((0, _imports.cosmjsAminoImportStatements)(typeHash)); // TYPES
68
64
 
69
65
  Object.values(typeHash).forEach(function (type) {
70
66
  body.push((0, _clean.clean)(type));
71
- }); // query messages
67
+ }); // alias the ExecuteMsg
68
+
69
+ ExecuteMsg && body.push(t.exportNamedDeclaration(t.tsTypeAliasDeclaration(t.identifier("".concat(name, "ExecuteMsg")), null, t.tsTypeReference(t.identifier('ExecuteMsg'))))); // query messages
72
70
 
73
71
  if (QueryMsg) {
74
72
  QueryClient = (0, _case.pascal)("".concat(name, "QueryClient"));
@@ -93,7 +91,7 @@ var _default = /*#__PURE__*/function () {
93
91
  (0, _mkdirp.sync)(outPath);
94
92
  (0, _fs.writeFileSync)((0, _path.join)(outPath, Contract), code);
95
93
 
96
- case 19:
94
+ case 20:
97
95
  case "end":
98
96
  return _context.stop();
99
97
  }
@@ -0,0 +1,26 @@
1
+ "use strict";
2
+
3
+ var _typeof = require("@babel/runtime/helpers/typeof");
4
+
5
+ Object.defineProperty(exports, "__esModule", {
6
+ value: true
7
+ });
8
+ exports.cosmjsAminoImportStatements = void 0;
9
+
10
+ var w = _interopRequireWildcard(require("wasm-ast-types"));
11
+
12
+ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
13
+
14
+ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
15
+
16
+ var cosmjsAminoImportStatements = function cosmjsAminoImportStatements(typeHash) {
17
+ var cosmjsImports = ['StdFee']; // If the coin is not provided by the generation already, import it from cosmjs
18
+
19
+ if (!typeHash.hasOwnProperty('Coin')) {
20
+ cosmjsImports.unshift('Coin');
21
+ }
22
+
23
+ return w.importStmt(cosmjsImports, '@cosmjs/amino');
24
+ };
25
+
26
+ exports.cosmjsAminoImportStatements = cosmjsAminoImportStatements;
package/main/index.js CHANGED
@@ -56,4 +56,18 @@ Object.keys(_utils).forEach(function (key) {
56
56
  return _utils[key];
57
57
  }
58
58
  });
59
+ });
60
+
61
+ var _imports = require("./imports");
62
+
63
+ Object.keys(_imports).forEach(function (key) {
64
+ if (key === "default" || key === "__esModule") return;
65
+ if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
66
+ if (key in exports && exports[key] === _imports[key]) return;
67
+ Object.defineProperty(exports, key, {
68
+ enumerable: true,
69
+ get: function get() {
70
+ return _imports[key];
71
+ }
72
+ });
59
73
  });
@@ -31,48 +31,74 @@ var _generator = _interopRequireDefault(require("@babel/generator"));
31
31
 
32
32
  var _utils = require("./utils");
33
33
 
34
+ var _imports = require("./imports");
35
+
34
36
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
35
37
 
36
38
  function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
37
39
 
38
40
  var _default = /*#__PURE__*/function () {
39
- var _ref = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee(name, schemas, outPath, options) {
40
- var ReactQueryFile, Contract, QueryMsg, typeHash, QueryClient, ReadOnlyInstance, body, code;
41
+ var _ref = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee(contractName, schemas, outPath, options) {
42
+ var ReactQueryFile, Contract, QueryMsg, ExecuteMsg, typeHash, ExecuteClient, QueryClient, body, reactQueryImports, clientImports, shouldGenerateMutationHooks, code;
41
43
  return _regenerator["default"].wrap(function _callee$(_context) {
42
44
  while (1) {
43
45
  switch (_context.prev = _context.next) {
44
46
  case 0:
45
- ReactQueryFile = (0, _case.pascal)("".concat(name, "Contract")) + '.react-query.ts';
46
- Contract = (0, _case.pascal)("".concat(name, "Contract"));
47
+ ReactQueryFile = (0, _case.pascal)("".concat(contractName, "Contract")) + '.react-query.ts';
48
+ Contract = (0, _case.pascal)("".concat(contractName, "Contract"));
47
49
  QueryMsg = (0, _utils.findQueryMsg)(schemas);
48
- _context.next = 5;
50
+ ExecuteMsg = (0, _utils.findExecuteMsg)(schemas);
51
+ _context.next = 6;
49
52
  return (0, _utils.findAndParseTypes)(schemas);
50
53
 
51
- case 5:
54
+ case 6:
52
55
  typeHash = _context.sent;
53
- QueryClient = null;
54
- ReadOnlyInstance = null;
56
+ ExecuteClient = (0, _case.pascal)("".concat(contractName, "Client"));
57
+ QueryClient = (0, _case.pascal)("".concat(contractName, "QueryClient"));
55
58
  body = [];
56
- body.push(w.importStmt(['useQuery', 'UseQueryOptions'], options !== null && options !== void 0 && options.v4 ? '@tanstack/react-query' : 'react-query'));
57
- body.push(w.importStmt(Object.keys(typeHash), "./".concat(Contract))); // query messages
59
+ reactQueryImports = ['useQuery', 'UseQueryOptions'];
60
+ clientImports = [];
61
+ QueryMsg && clientImports.push(QueryClient); // check that there are commands within the exec msg
62
+
63
+ shouldGenerateMutationHooks = ExecuteMsg && (options === null || options === void 0 ? void 0 : options.v4) && (options === null || options === void 0 ? void 0 : options.mutations) && (0, w.getMessageProperties)(ExecuteMsg).length > 0;
64
+
65
+ if (shouldGenerateMutationHooks) {
66
+ body.push(w.importStmt(['ExecuteResult'], '@cosmjs/cosmwasm-stargate'));
67
+ body.push((0, _imports.cosmjsAminoImportStatements)(typeHash));
68
+ reactQueryImports.push('useMutation', 'UseMutationOptions');
69
+ clientImports.push(ExecuteClient);
70
+ } // react-query imports
71
+
72
+
73
+ body.push(w.importStmt(reactQueryImports, options !== null && options !== void 0 && options.v4 ? '@tanstack/react-query' : 'react-query')); // general contract imports
74
+
75
+ body.push(w.importStmt(Object.keys(typeHash), "./".concat(Contract))); // client imports
76
+
77
+ body.push(w.importStmt(clientImports, "./".concat(Contract))); // query messages
58
78
 
59
79
  if (QueryMsg) {
60
- QueryClient = (0, _case.pascal)("".concat(name, "QueryClient"));
61
- ReadOnlyInstance = (0, _case.pascal)("".concat(name, "ReadOnlyInterface"));
62
- body.push(w.importStmt([QueryClient], "./".concat(Contract)));
63
80
  [].push.apply(body, w.createReactQueryHooks({
64
81
  queryMsg: QueryMsg,
65
- contractName: name,
82
+ contractName: contractName,
66
83
  QueryClient: QueryClient,
67
84
  options: options
68
85
  }));
69
86
  }
70
87
 
88
+ if (shouldGenerateMutationHooks) {
89
+ [].push.apply(body, w.createReactQueryMutationHooks({
90
+ execMsg: ExecuteMsg,
91
+ contractName: contractName,
92
+ ExecuteClient: ExecuteClient,
93
+ options: options
94
+ }));
95
+ }
96
+
71
97
  code = _header.header + (0, _generator["default"])(t.program(body)).code;
72
98
  (0, _mkdirp.sync)(outPath);
73
99
  (0, _fs.writeFileSync)((0, _path.join)(outPath, ReactQueryFile), code);
74
100
 
75
- case 15:
101
+ case 23:
76
102
  case "end":
77
103
  return _context.stop();
78
104
  }
@@ -31,6 +31,11 @@ export default (async argv => {
31
31
  name: 'v4',
32
32
  message: 'Use react-query v4?',
33
33
  default: false
34
+ }, {
35
+ type: 'confirm',
36
+ name: 'mutations',
37
+ message: 'Geneate useMutation hooks? Must be used with v4.',
38
+ default: false
34
39
  }];
35
40
 
36
41
  const _await$prompt = await prompt(questions, argv),
@@ -8,7 +8,8 @@ import { writeFileSync } from 'fs';
8
8
  import generate from "@babel/generator";
9
9
  import { clean } from "./clean";
10
10
  import { getMessageProperties } from "wasm-ast-types";
11
- import { findAndParseTypes, findExecuteMsg, findQueryMsg } from "./utils";
11
+ import { findAndParseTypes, findExecuteMsg, findQueryMsg } from './utils';
12
+ import { cosmjsAminoImportStatements } from './imports';
12
13
  export default (async (name, schemas, outPath) => {
13
14
  const Contract = pascal(`${name}Contract`) + '.ts';
14
15
  const QueryMsg = findQueryMsg(schemas);
@@ -20,17 +21,13 @@ export default (async (name, schemas, outPath) => {
20
21
  let ReadOnlyInstance = null;
21
22
  const body = [];
22
23
  body.push(w.importStmt(['CosmWasmClient', 'ExecuteResult', 'SigningCosmWasmClient'], '@cosmjs/cosmwasm-stargate'));
23
-
24
- if (typeHash.hasOwnProperty('Coin')) {
25
- body.push(w.importStmt(['StdFee'], '@cosmjs/amino'));
26
- } else {
27
- body.push(w.importStmt(['Coin', 'StdFee'], '@cosmjs/amino'));
28
- } // TYPES
29
-
24
+ body.push(cosmjsAminoImportStatements(typeHash)); // TYPES
30
25
 
31
26
  Object.values(typeHash).forEach(type => {
32
27
  body.push(clean(type));
33
- }); // query messages
28
+ }); // alias the ExecuteMsg
29
+
30
+ ExecuteMsg && body.push(t.exportNamedDeclaration(t.tsTypeAliasDeclaration(t.identifier(`${name}ExecuteMsg`), null, t.tsTypeReference(t.identifier('ExecuteMsg'))))); // query messages
34
31
 
35
32
  if (QueryMsg) {
36
33
  QueryClient = pascal(`${name}QueryClient`);
@@ -0,0 +1,10 @@
1
+ import * as w from 'wasm-ast-types';
2
+ export const cosmjsAminoImportStatements = typeHash => {
3
+ const cosmjsImports = ['StdFee']; // If the coin is not provided by the generation already, import it from cosmjs
4
+
5
+ if (!typeHash.hasOwnProperty('Coin')) {
6
+ cosmjsImports.unshift('Coin');
7
+ }
8
+
9
+ return w.importStmt(cosmjsImports, '@cosmjs/amino');
10
+ };
package/module/index.js CHANGED
@@ -2,4 +2,5 @@ export { default as generate } from './generate';
2
2
  export { default as fromPartial } from './from-partial';
3
3
  export { default as reactQuery } from './react-query';
4
4
  export { default as recoil } from './recoil';
5
- export * from './utils';
5
+ export * from './utils';
6
+ export * from './imports';
@@ -6,30 +6,56 @@ import * as w from 'wasm-ast-types';
6
6
  import * as t from '@babel/types';
7
7
  import { writeFileSync } from 'fs';
8
8
  import generate from "@babel/generator";
9
- import { findAndParseTypes, findQueryMsg } from "./utils";
10
- export default (async (name, schemas, outPath, options) => {
11
- const ReactQueryFile = pascal(`${name}Contract`) + '.react-query.ts';
12
- const Contract = pascal(`${name}Contract`);
9
+ import { findAndParseTypes, findExecuteMsg, findQueryMsg } from './utils';
10
+ import { getMessageProperties } from "wasm-ast-types";
11
+ import { cosmjsAminoImportStatements } from './imports';
12
+ export default (async (contractName, schemas, outPath, options) => {
13
+ const ReactQueryFile = pascal(`${contractName}Contract`) + '.react-query.ts';
14
+ const Contract = pascal(`${contractName}Contract`);
13
15
  const QueryMsg = findQueryMsg(schemas);
16
+ const ExecuteMsg = findExecuteMsg(schemas);
14
17
  const typeHash = await findAndParseTypes(schemas);
15
- let QueryClient = null;
16
- let ReadOnlyInstance = null;
18
+ const ExecuteClient = pascal(`${contractName}Client`);
19
+ const QueryClient = pascal(`${contractName}QueryClient`);
17
20
  const body = [];
18
- body.push(w.importStmt(['useQuery', 'UseQueryOptions'], options?.v4 ? '@tanstack/react-query' : 'react-query'));
19
- body.push(w.importStmt(Object.keys(typeHash), `./${Contract}`)); // query messages
21
+ const reactQueryImports = ['useQuery', 'UseQueryOptions'];
22
+ const clientImports = [];
23
+ QueryMsg && clientImports.push(QueryClient); // check that there are commands within the exec msg
24
+
25
+ const shouldGenerateMutationHooks = ExecuteMsg && options?.v4 && options?.mutations && getMessageProperties(ExecuteMsg).length > 0;
26
+
27
+ if (shouldGenerateMutationHooks) {
28
+ body.push(w.importStmt(['ExecuteResult'], '@cosmjs/cosmwasm-stargate'));
29
+ body.push(cosmjsAminoImportStatements(typeHash));
30
+ reactQueryImports.push('useMutation', 'UseMutationOptions');
31
+ clientImports.push(ExecuteClient);
32
+ } // react-query imports
33
+
34
+
35
+ body.push(w.importStmt(reactQueryImports, options?.v4 ? '@tanstack/react-query' : 'react-query')); // general contract imports
36
+
37
+ body.push(w.importStmt(Object.keys(typeHash), `./${Contract}`)); // client imports
38
+
39
+ body.push(w.importStmt(clientImports, `./${Contract}`)); // query messages
20
40
 
21
41
  if (QueryMsg) {
22
- QueryClient = pascal(`${name}QueryClient`);
23
- ReadOnlyInstance = pascal(`${name}ReadOnlyInterface`);
24
- body.push(w.importStmt([QueryClient], `./${Contract}`));
25
42
  [].push.apply(body, w.createReactQueryHooks({
26
43
  queryMsg: QueryMsg,
27
- contractName: name,
44
+ contractName: contractName,
28
45
  QueryClient,
29
46
  options
30
47
  }));
31
48
  }
32
49
 
50
+ if (shouldGenerateMutationHooks) {
51
+ [].push.apply(body, w.createReactQueryMutationHooks({
52
+ execMsg: ExecuteMsg,
53
+ contractName: contractName,
54
+ ExecuteClient,
55
+ options
56
+ }));
57
+ }
58
+
33
59
  const code = header + generate(t.program(body)).code;
34
60
  mkdirp(outPath);
35
61
  writeFileSync(join(outPath, ReactQueryFile), code);
package/module/utils.js CHANGED
@@ -2,7 +2,7 @@ import { sync as glob } from 'glob';
2
2
  import { readFileSync } from 'fs';
3
3
  import { cleanse } from './cleanse';
4
4
  import { compile } from 'json-schema-to-typescript';
5
- import { parser } from "./parse";
5
+ import { parser } from './parse';
6
6
  export const readSchemas = ({
7
7
  schemaDir,
8
8
  argv,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cosmwasm/ts-codegen",
3
- "version": "0.5.7",
3
+ "version": "0.6.1",
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",
@@ -47,39 +47,39 @@
47
47
  "url": "https://github.com/cosmwasm/ts-codegen/issues"
48
48
  },
49
49
  "devDependencies": {
50
- "@babel/cli": "7.17.10",
51
- "@babel/eslint-parser": "^7.18.2",
52
- "@babel/node": "^7.18.5",
53
- "@types/jest": "^28.1.2",
50
+ "@babel/cli": "7.18.10",
51
+ "@babel/eslint-parser": "^7.18.9",
52
+ "@babel/node": "^7.18.10",
53
+ "@types/jest": "^28.1.6",
54
54
  "ast-stringify": "0.1.0",
55
55
  "babel-core": "7.0.0-bridge.0",
56
- "babel-jest": "28.1.1",
56
+ "babel-jest": "28.1.3",
57
57
  "babel-watch": "^7.0.0",
58
58
  "cosmwasm": "1.1.1",
59
59
  "cross-env": "^7.0.2",
60
- "eslint": "8.17.0",
60
+ "eslint": "8.21.0",
61
61
  "eslint-config-prettier": "^8.5.0",
62
- "eslint-plugin-prettier": "^4.0.0",
63
- "jest": "^28.1.1",
62
+ "eslint-plugin-prettier": "^4.2.1",
63
+ "jest": "^28.1.3",
64
64
  "jest-in-case": "^1.0.2",
65
65
  "prettier": "^2.7.1",
66
66
  "regenerator-runtime": "^0.13.7",
67
- "ts-jest": "^28.0.5",
67
+ "ts-jest": "^28.0.7",
68
68
  "typescript": "^4.7.4"
69
69
  },
70
70
  "dependencies": {
71
- "@babel/core": "7.18.5",
72
- "@babel/generator": "7.18.2",
73
- "@babel/parser": "7.18.5",
74
- "@babel/plugin-proposal-class-properties": "7.17.12",
75
- "@babel/plugin-proposal-export-default-from": "7.17.12",
76
- "@babel/plugin-proposal-object-rest-spread": "7.18.0",
77
- "@babel/plugin-transform-runtime": "7.18.5",
78
- "@babel/preset-env": "7.18.2",
79
- "@babel/preset-typescript": "^7.17.12",
80
- "@babel/runtime": "^7.18.3",
81
- "@babel/traverse": "7.18.5",
82
- "@babel/types": "7.18.4",
71
+ "@babel/core": "7.18.10",
72
+ "@babel/generator": "7.18.12",
73
+ "@babel/parser": "7.18.11",
74
+ "@babel/plugin-proposal-class-properties": "7.18.6",
75
+ "@babel/plugin-proposal-export-default-from": "7.18.10",
76
+ "@babel/plugin-proposal-object-rest-spread": "7.18.9",
77
+ "@babel/plugin-transform-runtime": "7.18.10",
78
+ "@babel/preset-env": "7.18.10",
79
+ "@babel/preset-typescript": "^7.18.6",
80
+ "@babel/runtime": "^7.18.9",
81
+ "@babel/traverse": "7.18.11",
82
+ "@babel/types": "7.18.10",
83
83
  "case": "1.6.3",
84
84
  "dargs": "7.0.0",
85
85
  "fuzzy": "0.1.3",
@@ -90,7 +90,7 @@
90
90
  "minimist": "1.2.6",
91
91
  "mkdirp": "1.0.4",
92
92
  "shelljs": "0.8.5",
93
- "wasm-ast-types": "^0.4.2"
93
+ "wasm-ast-types": "^0.5.1"
94
94
  },
95
- "gitHead": "aafba6dadee2e5a14b304f0dd53858e8b509046d"
95
+ "gitHead": "213e10e01a8784d82d003821d6d9490b97b7b480"
96
96
  }
@@ -1,2 +1,2 @@
1
- declare const _default: (name: string, schemas: any[], outPath: string, options?: { optionalClient?: boolean, v4?: boolean }) => Promise<void>;
1
+ declare const _default: (name: string, schemas: any[], outPath: string, options?: { optionalClient?: boolean, v4?: boolean, mutations?: boolean }) => Promise<void>;
2
2
  export default _default;