sass 1.62.1 → 1.63.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -21,12 +21,12 @@ export class SassNumber extends Value {
21
21
  *
22
22
  * @param unit.numeratorUnits - If passed, these are the numerator units to
23
23
  * use for the number. This may be either a plain JavaScript array or an
24
- * immutable [[List]] from the [`immutable`
24
+ * immutable {@link List} from the [`immutable`
25
25
  * package](https://immutable-js.com/).
26
26
  *
27
27
  * @param unit.denominatorUnits - If passed, these are the denominator units
28
28
  * to use for the number. This may be either a plain JavaScript array or an
29
- * immutable [[List]] from the [`immutable`
29
+ * immutable {@link List} from the [`immutable`
30
30
  * package](https://immutable-js.com/).
31
31
  */
32
32
  constructor(
@@ -42,23 +42,23 @@ export class SassNumber extends Value {
42
42
  /** This number's numeric value. */
43
43
  get value(): number;
44
44
 
45
- /** Whether [[value]] is an integer according to Sass's equality logic. */
45
+ /** Whether {@link value} is an integer according to Sass's equality logic. */
46
46
  get isInt(): boolean;
47
47
 
48
48
  /**
49
- * If [[value]] is an integer according to [[isInt]], returns [[value]]
50
- * rounded to that integer. If it's not an integer, returns `null`.
49
+ * If {@link value} is an integer according to {@link isInt}, returns {@link
50
+ * value} rounded to that integer. If it's not an integer, returns `null`.
51
51
  */
52
52
  get asInt(): number | null;
53
53
 
54
54
  /**
55
- * This number's numerator units as an immutable [[List]] from the
55
+ * This number's numerator units as an immutable {@link List} from the
56
56
  * [`immutable` package](https://immutable-js.com/).
57
57
  */
58
58
  get numeratorUnits(): List<string>;
59
59
 
60
60
  /**
61
- * This number's denominator units as an immutable [[List]] from the
61
+ * This number's denominator units as an immutable {@link List} from the
62
62
  * [`immutable` package](https://immutable-js.com/).
63
63
  */
64
64
  get denominatorUnits(): List<string>;
@@ -67,8 +67,8 @@ export class SassNumber extends Value {
67
67
  get hasUnits(): boolean;
68
68
 
69
69
  /**
70
- * If [[value]] is an integer according to [[isInt]], returns it rounded to
71
- * that integer. Otherwise, throws an error.
70
+ * If {@link value} is an integer according to {@link isInt}, returns it
71
+ * rounded to that integer. Otherwise, throws an error.
72
72
  *
73
73
  * @param name - The name of the function argument `this` came from (without
74
74
  * the `$`) if it came from an argument. Used for error reporting.
@@ -76,9 +76,9 @@ export class SassNumber extends Value {
76
76
  assertInt(name?: string): number;
77
77
 
78
78
  /**
79
- * Returns [[value]] if it's within `min` and `max`. If [[value]] is equal to
80
- * `min` or `max` according to Sass's equality, returns `min` or `max`
81
- * respectively. Otherwise, throws an error.
79
+ * Returns {@link value} if it's within `min` and `max`. If {@link value} is
80
+ * equal to `min` or `max` according to Sass's equality, returns `min` or
81
+ * `max` respectively. Otherwise, throws an error.
82
82
  *
83
83
  * @param name - The name of the function argument `this` came from (without
84
84
  * the `$`) if it came from an argument. Used for error reporting.
@@ -120,12 +120,12 @@ export class SassNumber extends Value {
120
120
  * either `newNumerators` or `newDenominators` are not empty, or vice-versa.
121
121
  *
122
122
  * @param newNumerators - The numerator units to convert this number to. This
123
- * may be either a plain JavaScript array or an immutable [[List]] from the
124
- * [`immutable` package](https://immutable-js.com/).
123
+ * may be either a plain JavaScript array or an immutable {@link List} from
124
+ * the [`immutable` package](https://immutable-js.com/).
125
125
  *
126
126
  * @param newDenominators - The denominator units to convert this number to.
127
- * This may be either a plain JavaScript array or an immutable [[List]] from
128
- * the [`immutable` package](https://immutable-js.com/).
127
+ * This may be either a plain JavaScript array or an immutable {@link List}
128
+ * from the [`immutable` package](https://immutable-js.com/).
129
129
  *
130
130
  * @param name - The name of the function argument `this` came from (without
131
131
  * the `$`) if it came from an argument. Used for error reporting.
@@ -155,20 +155,20 @@ export class SassNumber extends Value {
155
155
  ): SassNumber;
156
156
 
157
157
  /**
158
- * Returns [[value]], converted to the units represented by `newNumerators`
159
- * and `newDenominators`.
158
+ * Returns {@link value}, converted to the units represented by
159
+ * `newNumerators` and `newDenominators`.
160
160
  *
161
161
  * @throws `Error` if this number's units are incompatible with
162
162
  * `newNumerators` and `newDenominators`; or if this number is unitless and
163
163
  * either `newNumerators` or `newDenominators` are not empty, or vice-versa.
164
164
  *
165
- * @param newNumerators - The numerator units to convert [[value]] to. This
166
- * may be either a plain JavaScript array or an immutable [[List]] from the
167
- * [`immutable` package](https://immutable-js.com/).
165
+ * @param newNumerators - The numerator units to convert {@link value} to.
166
+ * This may be either a plain JavaScript array or an immutable {@link List}
167
+ * from the [`immutable` package](https://immutable-js.com/).
168
168
  *
169
- * @param newDenominators - The denominator units to convert [[value]] to.
170
- * This may be either a plain JavaScript array or an immutable [[List]] from
171
- * the [`immutable` package](https://immutable-js.com/).
169
+ * @param newDenominators - The denominator units to convert {@link value} to.
170
+ * This may be either a plain JavaScript array or an immutable {@link List}
171
+ * from the [`immutable` package](https://immutable-js.com/).
172
172
  *
173
173
  * @param name - The name of the function argument `this` came from (without
174
174
  * the `$`) if it came from an argument. Used for error reporting.
@@ -180,7 +180,7 @@ export class SassNumber extends Value {
180
180
  ): number;
181
181
 
182
182
  /**
183
- * Returns [[value]], converted to the same units as `other`.
183
+ * Returns {@link value}, converted to the same units as `other`.
184
184
  *
185
185
  * @throws `Error` if this number's units are incompatible with `other`'s
186
186
  * units, or if either number is unitless but the other is not.
@@ -201,7 +201,7 @@ export class SassNumber extends Value {
201
201
  * Returns a copy of this number, converted to the units represented by
202
202
  * `newNumerators` and `newDenominators`.
203
203
  *
204
- * Unlike [[convert]] this does *not* throw an error if this number is
204
+ * Unlike {@link convert} this does *not* throw an error if this number is
205
205
  * unitless and either `newNumerators` or `newDenominators` are not empty, or
206
206
  * vice-versa. Instead, it treats all unitless numbers as convertible to and
207
207
  * from all units without changing the value.
@@ -210,12 +210,12 @@ export class SassNumber extends Value {
210
210
  * `newNumerators` and `newDenominators`.
211
211
  *
212
212
  * @param newNumerators - The numerator units to convert this number to. This
213
- * may be either a plain JavaScript array or an immutable [[List]] from the
214
- * [`immutable` package](https://immutable-js.com/).
213
+ * may be either a plain JavaScript array or an immutable {@link List} from
214
+ * the [`immutable` package](https://immutable-js.com/).
215
215
  *
216
216
  * @param newDenominators - The denominator units to convert this number to.
217
- * This may be either a plain JavaScript array or an immutable [[List]] from
218
- * the [`immutable` package](https://immutable-js.com/).
217
+ * This may be either a plain JavaScript array or an immutable {@link List}
218
+ * from the [`immutable` package](https://immutable-js.com/).
219
219
  *
220
220
  * @param name - The name of the function argument `this` came from (without
221
221
  * the `$`) if it came from an argument. Used for error reporting.
@@ -230,10 +230,10 @@ export class SassNumber extends Value {
230
230
  * Returns a copy of this number, converted to the units represented by
231
231
  * `newNumerators` and `newDenominators`.
232
232
  *
233
- * Unlike [[convertToMatch]] this does *not* throw an error if this number is
234
- * unitless and either `newNumerators` or `newDenominators` are not empty, or
235
- * vice-versa. Instead, it treats all unitless numbers as convertible to and
236
- * from all units without changing the value.
233
+ * Unlike {@link convertToMatch} this does *not* throw an error if this number
234
+ * is unitless and either `newNumerators` or `newDenominators` are not empty,
235
+ * or vice-versa. Instead, it treats all unitless numbers as convertible to
236
+ * and from all units without changing the value.
237
237
  *
238
238
  * @throws `Error` if this number's units are incompatible with `other`'s
239
239
  * units.
@@ -251,24 +251,24 @@ export class SassNumber extends Value {
251
251
  ): SassNumber;
252
252
 
253
253
  /**
254
- * Returns [[value]], converted to the units represented by `newNumerators` and
255
- * `newDenominators`.
254
+ * Returns {@link value}, converted to the units represented by
255
+ * `newNumerators` and `newDenominators`.
256
256
  *
257
- * Unlike [[convertValue]] this does *not* throw an error if this number is
258
- * unitless and either `newNumerators` or `newDenominators` are not empty, or
259
- * vice-versa. Instead, it treats all unitless numbers as convertible to and
260
- * from all units without changing the value.
257
+ * Unlike {@link convertValue} this does *not* throw an error if this number
258
+ * is unitless and either `newNumerators` or `newDenominators` are not empty,
259
+ * or vice-versa. Instead, it treats all unitless numbers as convertible to
260
+ * and from all units without changing the value.
261
261
  *
262
262
  * @throws `Error` if this number's units are incompatible with
263
263
  * `newNumerators` and `newDenominators`.
264
264
  *
265
- * @param newNumerators - The numerator units to convert [[value]] to. This
266
- * may be either a plain JavaScript array or an immutable [[List]] from the
267
- * [`immutable` package](https://immutable-js.com/).
265
+ * @param newNumerators - The numerator units to convert {@link value} to.
266
+ * This may be either a plain JavaScript array or an immutable {@link List}
267
+ * from the [`immutable` package](https://immutable-js.com/).
268
268
  *
269
- * @param newDenominators - The denominator units to convert [[value]] to.
270
- * This may be either a plain JavaScript array or an immutable [[List]] from
271
- * the [`immutable` package](https://immutable-js.com/).
269
+ * @param newDenominators - The denominator units to convert {@link value} to.
270
+ * This may be either a plain JavaScript array or an immutable {@link List}
271
+ * from the [`immutable` package](https://immutable-js.com/).
272
272
  *
273
273
  * @param name - The name of the function argument `this` came from (without
274
274
  * the `$`) if it came from an argument. Used for error reporting.
@@ -280,10 +280,10 @@ export class SassNumber extends Value {
280
280
  ): number;
281
281
 
282
282
  /**
283
- * Returns [[value]], converted to the units represented by `newNumerators`
284
- * and `newDenominators`.
283
+ * Returns {@link value}, converted to the units represented by
284
+ * `newNumerators` and `newDenominators`.
285
285
  *
286
- * Unlike [[convertValueToMatch]] this does *not* throw an error if this
286
+ * Unlike {@link convertValueToMatch} this does *not* throw an error if this
287
287
  * number is unitless and either `newNumerators` or `newDenominators` are not
288
288
  * empty, or vice-versa. Instead, it treats all unitless numbers as
289
289
  * convertible to and from all units without changing the value.
@@ -62,7 +62,7 @@ export class SassString extends Value {
62
62
  get sassLength(): number;
63
63
 
64
64
  /**
65
- * Converts `sassIndex` to a JavaScript index into [[text]].
65
+ * Converts `sassIndex` to a JavaScript index into {@link text}.
66
66
  *
67
67
  * Sass indices are one-based, while JavaScript indices are zero-based. Sass
68
68
  * indices may also be negative in order to index from the end of the string.