Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Array of alias values mock as empty objects #44

Open
jasco opened this issue Oct 9, 2020 · 1 comment
Open

Array of alias values mock as empty objects #44

jasco opened this issue Oct 9, 2020 · 1 comment

Comments

@jasco
Copy link

jasco commented Oct 9, 2020

File t1.ts

type MyType = string;

interface Data {
    val: MyType;
    arr: MyType[];
}

node build/src/cli/index.js --files t1.ts --interfaces Data -o string

Result:

{
  "Data": {
    "val": "excepturi qui voluptatem",
    "arr": [
      {},
      {},
      {}
    ]
  }
};
@jasco jasco changed the title Array of type values mock as empty objects Array of alias values mock as empty objects Oct 9, 2020
@abarke
Copy link

abarke commented Oct 19, 2022

I get the same output:

{
  "Data": {
    "val": "quia placeat facilis",
    "arr": [
      {},
      {},
      {},
      {},
      {},
      {}
    ]
  }
};

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants