question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Documented API style of usage is not working

See original GitHub issue

The 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:closed
  • Created 4 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
rhlsthrmcommented, Nov 7, 2019

This worked for me! Thank you!

0reactions
krzkaczorcommented, Nov 7, 2019
Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found