zebreus / replicate-api

A TypeScript client library for the replicate.com API
https://github.com/Zebreus/replicate-api
MIT License
23 stars 2 forks source link

`PredictionStatusObject` type not exported #2

Closed archasek closed 1 year ago

archasek commented 1 year ago

Seems that PredictionStatusObject type is not exported. Not a big deal I guess, but would be helpful.

My case: export async function requestReplicate(): Promise<PredictionStatusObject> {}

archasek commented 1 year ago

Perhaps I'm a bit confused, but this time my IDE imported it (however, from the nested path: replicate-api/dist/helpers/convertPrediction).

Closing then, until I find it's a problem :D

zebreus commented 1 year ago

For now I only export the functions in index.js, but not the types. I have looked around a bit, it seems to be common practice to also have the types that are relevant for library users directly exported from there.

I added them to the index file, so it should work as expected with the latest version.