@@ -61,8 +61,10 @@ export type Selector =
6161 | SiblingSelector
6262 | ParentSelector
6363 | ObjectSelector
64+ | ImportSelector
6465 | IndexSelector
6566 | StyleSelector
67+ | ValueSelector
6668 | TypeSelector
6769
6870export type SingleCustomGroup = {
@@ -78,7 +80,7 @@ export interface SortImportsSortingNode extends SortingNode {
7880
7981export type Group = ValueGroup | TypeGroup | 'unknown' | string
8082
81- export type Modifier = TypeModifier
83+ export type Modifier = ValueModifier | TypeModifier
8284
8385type TypeGroup = JoinWithDash < [ TypeModifier , Selector ] >
8486
@@ -130,10 +132,16 @@ type ParentSelector = 'parent'
130132
131133type ObjectSelector = 'object'
132134
135+ type ImportSelector = 'import'
136+
137+ type ValueModifier = 'value'
138+
133139type IndexSelector = 'index'
134140
135141type StyleSelector = 'style'
136142
143+ type ValueSelector = 'value'
144+
137145type TypeModifier = 'type'
138146
139147type TypeSelector = 'type'
@@ -149,6 +157,8 @@ export let allSelectors: Selector[] = [
149157 'object' ,
150158 'index' ,
151159 'style' ,
160+ 'value' ,
161+ 'import' ,
152162 'type' ,
153163]
154164
@@ -161,7 +171,7 @@ export let allDeprecatedSelectors: Selector[] = [
161171 'index-type' ,
162172]
163173
164- export let allModifiers : Modifier [ ] = [ 'value ' , 'type ' ]
174+ export let allModifiers : Modifier [ ] = [ 'type ' , 'value ' ]
165175
166176/**
167177 * Ideally, we should generate as many schemas as there are selectors, and ensure
0 commit comments