Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Should warn when there are no output guard files #156

Open
kongweiying2 opened this issue Oct 14, 2021 · 3 comments
Open

Should warn when there are no output guard files #156

kongweiying2 opened this issue Oct 14, 2021 · 3 comments
Labels
enhancement New feature or request

Comments

@kongweiying2
Copy link

When I run yarn ts-auto-guard it just outputs this

yarn run v1.22.10
$ /Users/conwayying/programming/projects/lifemap/node_modules/.bin/ts-auto-guard
Done!
✨  Done in 14.77s.

And there doesn't appear to be a .guard.ts file generated anywhere. Am I missing something here?

@rhys-vdw
Copy link
Owner

Did you add the jsdoc comments as per the readme? https://github.com/rhys-vdw/ts-auto-guard#specify-with-annotation

@kongweiying2
Copy link
Author

Silly me, I assumed it would export all types if there were no annotations. Works great now, appreciate your library - super useful! The amount of pattern matching/schema validation/run time type checking libraries for TypeScript I've looked at has been ridiculous, glad to be settling on this one.

@rhys-vdw
Copy link
Owner

@TheAussieStew thanks! Glad it's useful. It's a very simple solution. There are some other libraries that look quite nice.

I'm going to reopen this issue because ideally we'd log a warning or error if no exports are made.

@rhys-vdw rhys-vdw reopened this Oct 24, 2021
@rhys-vdw rhys-vdw added the enhancement New feature or request label Oct 24, 2021
@rhys-vdw rhys-vdw changed the title No output guard files Should warn when there are no output guard files Oct 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants