| 1 |
import {Value} from './index'; |
| 2 |
|
| 3 |
/** |
| 4 |
* Sass's [function type](https://sass-lang.com/documentation/values/functions). |
| 5 |
* |
| 6 |
* **Heads up!** Although first-class Sass functions can be processed by custom |
| 7 |
* functions, there's no way to invoke them outside of a Sass stylesheet. |
| 8 |
* |
| 9 |
* @category Custom Function |
| 10 |
*/ |
| 11 |
export class SassFunction extends Value { |
| 12 |
/** |
| 13 |
* Creates a new first-class function that can be invoked using |
| 14 |
* [`meta.call()`](https://sass-lang.com/documentation/modules/meta#call). |
| 15 |
* |
| 16 |
* @param signature - The function signature, like you'd write for the |
| 17 |
* [`@function rule`](https://sass-lang.com/documentation/at-rules/function). |
| 18 |
* @param callback - The callback that's invoked when this function is called, |
| 19 |
* just like for a {@link CustomFunction}. |
| 20 |
*/ |
| 21 |
constructor(signature: string, callback: (args: Value[]) => Value); |
| 22 |
} |