Comments (4)
Hi @krzkaczor, thanks for your interest.
I think I'd need to see some examples to fully understand the implications. Consider adding some to the README.
Would ts-generator be an alternative to ts-simple-ast? I'm still not completely to grips with the capabilities of ts-simple-ast, as I'm only a few days into this project. I'm new to code generation -- note that I'm just concatenating strings manually at this stage, not constructing an AST.
At the moment I'm just trying to get the project into a working state and validate the concept, so I'd be hesitant to refactor.
from ts-auto-guard.
Yeah @rhys-vdw sorry about that, ts-generator
is WIP, documentation and readme will appear in next days.
I see that you use ts-simple-ast
, I am not sure if it has nice API to work with strings instead of file system.
The premise of ts-generator
is to allow to parse ANY file (not only ts) and generate based on that some TS files. In your project you focus explicitly on parsing TS files and I understand that using something like ts-simple-ast
is just simpler. So I guess that using ts-simple-ast
might be better idea for now. Thanks for your input, maybe in future there is a possibilty to integrate both tools.
from ts-auto-guard.
I see that you use ts-simple-ast, I am not sure if it has nice API to work with strings instead of file system.
Not sure exactly what you mean here, but it does have a "virtual file system" mode.
from ts-auto-guard.
Closing for now, let me know when krzkaczor/ts-generator#8 is closed and I'll consider re-opening.
from ts-auto-guard.
Related Issues (20)
- Check for string length and number range HOT 5
- Double quoted property names HOT 4
- Type guards not compatible with noImplicitAny HOT 1
- Dependency tracking system uses declared names for imported types/guards/classes HOT 3
- Debug build does not quote the type of Record keys HOT 2
- Is there a way to generate guard with no export? HOT 2
- Doesn't correctly handle T types. HOT 2
- Improvement to usage docs HOT 2
- Support for explicit file extensions when using ESM HOT 4
- Rest elements in Tuple Types to support NonEmptyArray HOT 1
- Paths are not always replaced shortened on Windows
- RangeError: Maximum call stack size exceeded HOT 3
- Throw if file not found HOT 1
- Feature request: add `-r` recursive option HOT 2
- Type aliases produce type guards with TS errors (TS6133) HOT 1
- Incorrect type guard generated when using constant for interface keys HOT 3
- Supply Chain Security Analysis - Socket.Dev HOT 1
- VS Code Integration HOT 1
- Dependabot Integration HOT 1
- Deploy workflow published version 5 without committing changes HOT 13
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ts-auto-guard.