Trips tools like eslint, e.g.:
Oops! Something went wrong! :(
ESLint: 8.57.1
Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: Package subpath './types/legacy/options' is not defined by "exports" in /<snip>/node_modules/sass/package.json
Occurred while linting /<snip>/rollup.config.mjs:2
Rule: "import/namespace"
From what I see, the legacy types are re-exported in the types/index, so it should be possible to import directly like this import { LegacyOptions } from 'sass'.