-
Notifications
You must be signed in to change notification settings - Fork 78
Open
Labels
enhancementNew feature or requestNew feature or requestquestionFurther information is requestedFurther information is requested
Description
We have a maybe irrelevant for this package use case in which we mostly want to generate type definitions for our variables.
For example we would like this .scss:
$screen-size-keys: ("xxs", "xs", "sm", "md", "lg", "xl", "xxl");
$screen-size-map: (
"xxs": 280px,
"xs": 320px,
"sm": 576px,
"md": 768px,
"lg": 992px,
"xl": 1200px,
"xxl": 1400px,
);to generate something like this .d.ts
type ScreenSizeKeys = "xxs" | "xs" | "sm" | "md" | "lg" | "xl" | "xxl";
type ScreenSizeMap = {
[key: string]: string // or if I may dream ` { [key in ScreenSizeKeys]: string } `
};Is this completely out of the scope of this package? If no, how would I accomplish this? If yes, does anyone know any library for doing something like this?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requestquestionFurther information is requestedFurther information is requested