Open seahindeniz opened 4 years ago
Hi @seahindeniz
Thank you for your suggestions!
// I can't find their types on the README.md so they are optional and have "any" type StatisticType = { input?: any; path_out_new?: any; algorithm?: any; size_in?: any; size_output?: any; percent?: any; err?: any; };
Types located in the README.md API
input (type:string): Path to source image or images;
Your proposal is interesting. But I don't know what to say. So far I do not see the need for this, but of course, this does not mean that there is no such need. Therefore, I would like to know the opinion of others.
Thanks anyway.
Hi @semiromid
I have some suggestions about the types of parameters and their usages.
Quoting from README.md
Don't get me wrong but passing arguments that may don't even do with the input files, it's just kind of confusing and doesn't seem like it's well constructed.
What do you think about changing the structure to have something like this instead?
PS: Suggestions are written in TypeScript to have a better understanding of the properties and their types. You can review them on the TS Playground