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

References to objects between files fake as empty objects #43

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

References to objects between files fake as empty objects #43

jasco opened this issue Oct 9, 2020 · 1 comment

Comments

@jasco
Copy link

jasco commented Oct 9, 2020

File f1.ts:

import Data2 from "./f2";

interface LocalData {
    val: string;
}

interface Data1 {
    val1: Data2;
    val2: LocalData;
}

File f2.ts:

interface Data2 {
    val: string;
}

node build/src/cli/index.js --files f1.ts f2.ts --interfaces Data1 Data2

Results:

{
  Data1: { val1: {}, val2: { val: 'quia dolores quam' } },
  Data2: {
    val: 'Sequi iure nulla reprehenderit impedit in explicabo saepe. Voluptatibus ex quo. Voluptas qui sunt minus.\n' +
      ' \rSed expedita sunt iure pariatur molestiae velit repellendus. Quisquam architecto explicabo quas et numquam. Commodi eos itaque voluptatem quia qui et alias. Tempora ut animi id sint non consequatur et.\n' +
      ' \rNon aut et aut et qui facere nesciunt eos aut. Sunt corrupti harum et commodi quibusdam et placeat voluptas id. Qui voluptas unde. Voluptatem in atque aperiam possimus sit ad minima.'
  }
}

Notice Data1.val1 is {}.

@jasco
Copy link
Author

jasco commented Oct 9, 2020

This might be similar to the issue reported in #14. I'm not sure.

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

1 participant