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"