Documented API style of usage is not working
See original GitHub issueThe following is in the docs:
import { tsGen } from "ts-generator";
import { Typechain } from "typechain";
async function main() {
await tsGen(
{ cwd },
new Typechain({ cwd, rawConfig: { files: "your-glob-here", outDir: "optional out dir path" } }),
);
}
I’m getting the following type errors when trying to run this:
Module '"../../../../Users/rahul/Projects/solidity-ts-dev-stack-example/node_modules/ts-generator/dist/publicApi"' has no exported member 'tsGen'.
Module '"../../../../Users/rahul/Projects/solidity-ts-dev-stack-example/node_modules/typechain/dist"' has no exported member 'Typechain'.
(property) cwd: any
No value exists in scope for the shorthand property 'cwd'. Either declare one or provide an initializer.
How can I run it?
Issue Analytics
- State:
- Created 4 years ago
- Comments:6 (4 by maintainers)
Top Results From Across the Web
API Documentation Guide and Best Practices
In this API documentation guide, we'll cover the basics of how to document APIs and ... It's a big job that can roughly...
Read more >How to Write API Documentation: Best Practices and ...
Here are some common issues devs have with API docs. It's not written using simple human language. This is a common problem for...
Read more >API Documentation Made Easy with OpenAPI & Swagger
API documentation is the information that is required to successfully consume and ... Spotting issues in the design, before writing any code is...
Read more >Documenting APIs: A guide for technical writers and engineers
In this course on writing documentation for APIs, instead of just talking ... a type of web API) involve requests and responses, not...
Read more >How to Write Good API Documentation
The overview should contain a summary of the API and the problem it is ... State different use cases while writing the documentation....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
This worked for me! Thank you!
Thanks for confirming. Improved readme in https://github.com/ethereum-ts/TypeChain/commit/b3f8974dcd98c103a079139a3a96b7980643a523