grafana / cuetsy

Experimental CUE->TypeScript exporter
Apache License 2.0
106 stars 8 forks source link

Add the export option to cuetfy.exe. #83

Closed Marimoiro closed 1 year ago

Marimoiro commented 1 year ago

Very unfortunate. Now cuetify.exe cannot set config.export to true.

So when I convert DiceFaces: 1 | 2 | 3 | 4 | 5 | 6 @cuetsy(kind="type") with cuetify.exe, I don't get export type DiceFaces = 1 | 2 | 3 | 4 | 5 | 6; but type DiceFaces = 1 | 2 | 3 | 4 | 5 | 6;.

I have implemented the export option in one way and created a PR(https://github.com/grafana/cuetsy/pull/82). Would you accept this PR with some modifications?

spinillos commented 1 year ago

Thank you for that. I just merged the PR.