@cosmwasm/ts-codegen 0.5.6 → 0.6.0
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/main/commands/react-query.js +10 -0
- package/main/generate.js +7 -9
- package/main/imports.js +26 -0
- package/main/index.js +14 -0
- package/main/react-query.js +41 -15
- package/module/commands/react-query.js +10 -0
- package/module/generate.js +6 -9
- package/module/imports.js +10 -0
- package/module/index.js +2 -1
- package/module/react-query.js +38 -12
- package/module/utils.js +1 -1
- package/package.json +3 -3
- package/types/react-query.d.ts +1 -1
@@ -51,6 +51,16 @@ var _default = /*#__PURE__*/function () {
|
|
51
51
|
name: 'optionalClient',
|
52
52
|
message: 'optionalClient?',
|
53
53
|
"default": false
|
54
|
+
}, {
|
55
|
+
type: 'confirm',
|
56
|
+
name: 'v4',
|
57
|
+
message: 'Use react-query v4?',
|
58
|
+
"default": false
|
59
|
+
}, {
|
60
|
+
type: 'confirm',
|
61
|
+
name: 'mutations',
|
62
|
+
message: 'Geneate useMutation hooks? Must be used with v4.',
|
63
|
+
"default": false
|
54
64
|
}];
|
55
65
|
_context.next = 3;
|
56
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
|
-
}); //
|
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
|
94
|
+
case 20:
|
97
95
|
case "end":
|
98
96
|
return _context.stop();
|
99
97
|
}
|
package/main/imports.js
ADDED
@@ -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
|
});
|
package/main/react-query.js
CHANGED
@@ -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(
|
40
|
-
var ReactQueryFile, Contract, QueryMsg, typeHash,
|
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(
|
46
|
-
Contract = (0, _case.pascal)("".concat(
|
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
|
-
|
50
|
+
ExecuteMsg = (0, _utils.findExecuteMsg)(schemas);
|
51
|
+
_context.next = 6;
|
49
52
|
return (0, _utils.findAndParseTypes)(schemas);
|
50
53
|
|
51
|
-
case
|
54
|
+
case 6:
|
52
55
|
typeHash = _context.sent;
|
53
|
-
|
54
|
-
|
56
|
+
ExecuteClient = (0, _case.pascal)("".concat(contractName, "Client"));
|
57
|
+
QueryClient = (0, _case.pascal)("".concat(contractName, "QueryClient"));
|
55
58
|
body = [];
|
56
|
-
|
57
|
-
|
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:
|
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
|
101
|
+
case 23:
|
76
102
|
case "end":
|
77
103
|
return _context.stop();
|
78
104
|
}
|
@@ -26,6 +26,16 @@ export default (async argv => {
|
|
26
26
|
name: 'optionalClient',
|
27
27
|
message: 'optionalClient?',
|
28
28
|
default: false
|
29
|
+
}, {
|
30
|
+
type: 'confirm',
|
31
|
+
name: 'v4',
|
32
|
+
message: 'Use react-query v4?',
|
33
|
+
default: false
|
34
|
+
}, {
|
35
|
+
type: 'confirm',
|
36
|
+
name: 'mutations',
|
37
|
+
message: 'Geneate useMutation hooks? Must be used with v4.',
|
38
|
+
default: false
|
29
39
|
}];
|
30
40
|
|
31
41
|
const _await$prompt = await prompt(questions, argv),
|
package/module/generate.js
CHANGED
@@ -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
|
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
|
-
}); //
|
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';
|
package/module/react-query.js
CHANGED
@@ -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
|
10
|
-
|
11
|
-
|
12
|
-
|
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
|
-
|
16
|
-
|
18
|
+
const ExecuteClient = pascal(`${contractName}Client`);
|
19
|
+
const QueryClient = pascal(`${contractName}QueryClient`);
|
17
20
|
const body = [];
|
18
|
-
|
19
|
-
|
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:
|
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
|
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.
|
3
|
+
"version": "0.6.0",
|
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",
|
@@ -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.
|
93
|
+
"wasm-ast-types": "^0.5.0"
|
94
94
|
},
|
95
|
-
"gitHead": "
|
95
|
+
"gitHead": "871479982969e89f40b75ca5c85e8bed34a824da"
|
96
96
|
}
|
package/types/react-query.d.ts
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
declare const _default: (name: string, schemas: any[], outPath: string, options?: { optionalClient?: 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;
|