SirwanAfifi/ts-faker

Objects are not generated

Closed this issue · 2 comments

Hey! Lovely tool, although I noticed when trying to generate objects it gives me some kind of hash.

Input:

interface Banner {
  value: string;
  deepObject: {
    value: string
  }
};

Output:

[{"name":"Banner","data":[{"value":"Voluptatem itaque molestiae ....","deepObject":"eAx5mOD4(e"}}]

Screenshot 2022-11-17 at 10 21 34

Hey @bitttttten glad you liked it,

Currently, the project does not support nested objects, but I will add it in the near future. In the meantime, if you have anything in mind, please send a pull request :)

@bitttttten I did something similar with nested interfaces and types, maybe can be useful