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

Throw Error when {[key: string]: string} #46

Open
55utah opened this issue Nov 22, 2020 · 3 comments
Open

Throw Error when {[key: string]: string} #46

55utah opened this issue Nov 22, 2020 · 3 comments

Comments

@55utah
Copy link

55utah commented Nov 22, 2020

intermock/build/src/lang/ts/intermock.js:47
  throw Error(`Unsupported Primitive type ${syntaxType}`);
  
Error: Unsupported Primitive type 173

the typescript interface is like:

interface Action {
    value: {[key:string]:string};//,<未设置>
    tag: string;//,<未设置>
}

it throw error when meet value.

  1. Ask for new option that allow user set to avoid error, for example, meet unkown type, output {}.
  2. Or support the structure.
@Toolo
Copy link

Toolo commented Mar 8, 2021

Also experiencing this 👍

@55utah
Copy link
Author

55utah commented Mar 12, 2021

Also experiencing this 👍

I dont get any response for a long time, and suggest you to fork and develop it just like me ..

@Zuckjet
Copy link

Zuckjet commented Jul 23, 2021

If someone still have this problem, you can try my project mock-type, which is inspired by this project.

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

3 participants