code-block-writer
code-block-writer copied to clipboard
Code writer for JavaScript and TypeScript code.
If I have a class with a property, then I would like to get an array of all types with generic. Example: ``` class A { private test: GenericType>; }...
Hi! Thank you for this library! Is there any way to manage scopes of variables with it? For example, if I do some recursive code generation, at the moment I...
Similarly to the reason `conditionalWrite` was introducted, it would be really nice if we were not forced to break the chain and introduce a `for-of` loop with a single `writeLine`...
I like `block()`, `quote()`, etc. But there are other pairings of tokens which are important: parentheses, square brackets, backticks for template strings, etc. Suggested code: ```typescript pairedWrite( startToken: string, endToken:...
Apparently all roads lead back to this library! I am back after a couple of years 😅 I have a use case where I'm building properties in a class --...