Skip to content

Conversation

@AskSkivdal
Copy link
Contributor

This resolves #57 by adding a function tsync::generate_typescript_defs_inner that returns BuildState. I also added the commandline flag --stdout that prints the content to stdout, not to a file. However you still need to specify an output file, that will not be written to, a full filename is not required, just the extention with the leading period.

All the tests pass, and the signature of generate_typescript_defs remained unchanged as not to break compatability with earlier versions.

@AnthonyMichaelTDM
Copy link
Collaborator

pretty sure -d does this already

@AnthonyMichaelTDM
Copy link
Collaborator

the printing to stdout i mean

@AskSkivdal
Copy link
Contributor Author

D also adds some debug print statements, the stdout flag dosnt. -d also sets the global sebug flag.

I think these should be separate flags because -d has more functionality and will prpbably be used for more debugging in the future.

@AnthonyMichaelTDM
Copy link
Collaborator

fair enough

@AnthonyMichaelTDM AnthonyMichaelTDM merged commit 7cd9314 into Wulf:main Dec 14, 2025
2 checks passed
@AskSkivdal AskSkivdal deleted the #57-Print-to-stdout branch December 14, 2025 11:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Feature request: export to string rather than file

2 participants