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

Support for type of #91

Closed
uittorio opened this issue Nov 14, 2019 · 1 comment · Fixed by #117
Closed

Support for type of #91

uittorio opened this issue Nov 14, 2019 · 1 comment · Fixed by #117

Comments

@uittorio
Copy link
Member

typeof is not currently supported and it would be nice to implement the correct value.

Example

var obj = {
   a: ''
}
interface Interface {
    typeOf: typeof obj;
 }

The result of typeOf should be the var obj with default values.
A solution would be to generate the literal type on the fly and keep in the correct scope
I am not sure yet about all the implementations and how to solve it because there are scenario that a bit more complex. For example typeof of an enum type.

This issue needs to be investigated.

@uittorio
Copy link
Member Author

#83

Pmyl added a commit that referenced this issue Dec 8, 2019
@Pmyl Pmyl closed this as completed in #117 Dec 9, 2019
Pmyl added a commit that referenced this issue Dec 9, 2019
* some work on mockDefiner to speed up process and write some code for typeQuery

* feat(typeQuery): add support to typeQuery (typeof) to fix #91

* add documentation

* #91 add support for typeof variable
uittorio pushed a commit that referenced this issue Jan 4, 2020
* some work on mockDefiner to speed up process and write some code for typeQuery

* feat(typeQuery): add support to typeQuery (typeof) to fix #91

* add documentation

* #91 add support for typeof variable
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

Successfully merging a pull request may close this issue.

1 participant