W3cubDocs

/Sass

LegacyOptions<sync>

LegacyOptions<sync extends "sync" | "async">: LegacyFileOptions<sync> | LegacyStringOptions<sync>

Options for render and renderSync. This can either be LegacyFileOptions to load a file from disk, or LegacyStringOptions to compile a string of Sass code.

See LegacySharedOptions for options that are shared across both file and string inputs.

Deprecated

This only works with the legacy render and renderSync APIs. Use Options with compile, compileString, compileAsync, and compileStringAsync instead.

Type Parameters

  • sync extends "sync" | "async"

© 2006–2025 the Sass team, and numerous contributors
Licensed under the MIT License.
https://sass-lang.com/documentation/js-api/types/LegacyOptions