Additional Index Exports
Often you may want to export additional modules from the main index.ts
file of your SDK such as utilities and constants. Speakeasy is responsible for generating the contents of src/index.ts
so it is advised not to edit that file directly.
However, you can export additional modules from the index file (src/index.ts
) of your SDK by creating an index.extras.ts
file in src/
.
If the index.extras.ts
file exists, then the SDK generator will automatically re-export anything defined in that file from the main index.ts
file:
// src/index.ts// { Speakeasy generated exports }export * from "./index.extras.ts";