@@ -25,6 +25,13 @@ export interface SourceFile {
25
25
getText ( start : number , end ?: number ) : string ;
26
26
}
27
27
28
+ export interface DartSet < T > {
29
+ _type : T ;
30
+
31
+ // A brand to make this function as a nominal type.
32
+ _unique : 'DartSet' ;
33
+ }
34
+
28
35
// There may be a better way to declare this, but I can't figure it out.
29
36
// eslint-disable-next-line @typescript-eslint/no-namespace
30
37
declare namespace SassInternal {
@@ -37,6 +44,8 @@ declare namespace SassInternal {
37
44
38
45
function toCssIdentifier ( text : string ) : string ;
39
46
47
+ function setToJS < T > ( set : DartSet < T > ) : Set < T > ;
48
+
40
49
class StatementVisitor < T > {
41
50
private _fakePropertyToMakeThisAUniqueType1 : T ;
42
51
}
@@ -105,6 +114,16 @@ declare namespace SassInternal {
105
114
readonly isExclusive : boolean ;
106
115
}
107
116
117
+ class ForwardRule extends Statement {
118
+ readonly url : Object ;
119
+ readonly shownMixinsAndFunctions ?: DartSet < string > ;
120
+ readonly shownVariables ?: DartSet < string > ;
121
+ readonly hiddenMixinsAndFunctions ?: DartSet < string > ;
122
+ readonly hiddenVariables ?: DartSet < string > ;
123
+ readonly prefix ?: string ;
124
+ readonly configuration : ConfiguredVariable [ ] ;
125
+ }
126
+
108
127
class LoudComment extends Statement {
109
128
readonly text : Interpolation ;
110
129
}
@@ -247,6 +266,7 @@ export type EachRule = SassInternal.EachRule;
247
266
export type ErrorRule = SassInternal . ErrorRule ;
248
267
export type ExtendRule = SassInternal . ExtendRule ;
249
268
export type ForRule = SassInternal . ForRule ;
269
+ export type ForwardRule = SassInternal . ForwardRule ;
250
270
export type LoudComment = SassInternal . LoudComment ;
251
271
export type MediaRule = SassInternal . MediaRule ;
252
272
export type SilentComment = SassInternal . SilentComment ;
@@ -273,6 +293,7 @@ export interface StatementVisitorObject<T> {
273
293
visitErrorRule ( node : ErrorRule ) : T ;
274
294
visitExtendRule ( node : ExtendRule ) : T ;
275
295
visitForRule ( node : ForRule ) : T ;
296
+ visitForwardRule ( node : ForwardRule ) : T ;
276
297
visitLoudComment ( node : LoudComment ) : T ;
277
298
visitMediaRule ( node : MediaRule ) : T ;
278
299
visitSilentComment ( node : SilentComment ) : T ;
@@ -296,3 +317,4 @@ export const parseIdentifier = sassInternal.parseIdentifier;
296
317
export const toCssIdentifier = sassInternal . toCssIdentifier ;
297
318
export const createStatementVisitor = sassInternal . createStatementVisitor ;
298
319
export const createExpressionVisitor = sassInternal . createExpressionVisitor ;
320
+ export const setToJS = sassInternal . setToJS ;
0 commit comments