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

non-primitive scalars (json) #86

Closed
boredland opened this issue Jun 21, 2022 · 3 comments
Closed

non-primitive scalars (json) #86

boredland opened this issue Jun 21, 2022 · 3 comments

Comments

@boredland
Copy link
Contributor

boredland commented Jun 21, 2022

Hi there!

Lets say I have a custom scalar like this:

declare type Scalars = {
    Test: {
        k: string;
    };
};

When I try to access a property of that scalar, it has this type:

Pick<{
    k: string;
}, "valueOf"> | undefined

Clearly that is not what I wanted, as I now only can use the type-less "valueOf" function. Do you understand why that happens? Is that related to #57 ?

@remorses
Copy link
Owner

Yes, this is currently unsupported

Can you give me what you passed to cli or config to create that scalar declaration? i will take that in consideration when eventually adding this feature

@boredland
Copy link
Contributor Author

@remorses
Copy link
Owner

Should be fixed in 6.3.0, comment if you still have the issue

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.

2 participants