Export to TypeSpec from the Export dialog and the CLI
The Export dialog's TypeSpec card writes one .tsp file and shows its two options,
Include Http Imports and Include Comments. The CLI exports the same with
apiome export typespec. Where to find it.
- Ready to compile. By default the file carries the
@typespec/httpimport andusingit needs. Turn Include Http Imports off only if you add them yourself; from the CLI, add--option include_http_imports=false. - Your TypeSpec exports losslessly. An item imported from TypeSpec badges lossless. Any other source is lossy, and the fidelity report lists what TypeSpec does not keep.
- One file. The card, the CLI and a public item's Export dialog on Browse all deliver the
.tspitself, not a.zip.
