LegacySyncFunction
Type declaration
-
- (this: LegacyPluginThis, …args: LegacyValue[]): LegacyValue
-
Parameters
-
this: LegacyPluginThis
-
Rest
…args: LegacyValue[]One argument for each argument that's declared in the signature that's passed to functions. If the signature takes arbitrary arguments, they're passed as a single argument list in the last argument.
Returns LegacyValue
-
A synchronous callback that implements a custom Sass function. This can be passed to functions for either render or renderSync.
If this throws an error, Sass will treat that as the function failing with that error message.
Deprecated
This only works with the legacy render and renderSync APIs. Use CustomFunction with compile, compileString, compileAsync, and compileStringAsync instead.