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

No autocompletition on property value #60

Closed
Baumgaer opened this issue Nov 14, 2018 · 2 comments
Closed

No autocompletition on property value #60

Baumgaer opened this issue Nov 14, 2018 · 2 comments

Comments

@Baumgaer
Copy link

Baumgaer commented Nov 14, 2018

Hi there,

I found your awesome style definitions for typescript an I am emused to have this BUT the autocompletition does not work on values because they are always string | undefined.
The property "color" normaly should display valid color names but it doesn't.
I am using VS Code and at the moment there are no @types installed except typescript and its types Of course. It would be nice if you can fix this =)

Another thing is, that I need sometimes just a list of properties instead of an interface. For example PropertiesList = "background" | "backgroundPosition" | "color" and so on. This would be a very nice feature.

@meyer
Copy link

meyer commented Nov 15, 2018

@Eluminati for the first comment, see #8 and #57.

Regarding your second comment, you can use the following:

import { Properties } from 'csstype';
type PropertiesList = keyof Properties;

@Baumgaer
Copy link
Author

Oh sorry, I forgot that this is possible. Thank you.

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