index.d.ts 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. // This is a mirror of the JS API definitions in `spec/js-api`, but with comments
  2. // written to provide user-facing documentation rather than to specify behavior for
  3. // implementations.
  4. export {
  5. AsyncCompiler,
  6. CompileResult,
  7. Compiler,
  8. compile,
  9. compileAsync,
  10. compileString,
  11. compileStringAsync,
  12. initCompiler,
  13. initAsyncCompiler,
  14. } from './compile';
  15. export {
  16. deprecations,
  17. Deprecation,
  18. Deprecations,
  19. DeprecationOrId,
  20. DeprecationStatus,
  21. Version,
  22. } from './deprecations';
  23. export {Exception} from './exception';
  24. export {
  25. CanonicalizeContext,
  26. FileImporter,
  27. Importer,
  28. ImporterResult,
  29. NodePackageImporter,
  30. } from './importer';
  31. export {Logger, SourceSpan, SourceLocation} from './logger';
  32. export {
  33. CustomFunction,
  34. Options,
  35. OutputStyle,
  36. StringOptions,
  37. StringOptionsWithImporter,
  38. StringOptionsWithoutImporter,
  39. Syntax,
  40. } from './options';
  41. export {PromiseOr} from './util/promise_or';
  42. export {
  43. CalculationInterpolation,
  44. CalculationOperation,
  45. CalculationOperator,
  46. CalculationValue,
  47. ListSeparator,
  48. SassArgumentList,
  49. SassBoolean,
  50. SassCalculation,
  51. SassColor,
  52. SassFunction,
  53. SassList,
  54. SassMap,
  55. SassMixin,
  56. SassNumber,
  57. SassString,
  58. Value,
  59. sassFalse,
  60. sassNull,
  61. sassTrue,
  62. } from './value';
  63. // Legacy APIs
  64. export {LegacyException} from './legacy/exception';
  65. export {
  66. FALSE,
  67. LegacyAsyncFunction,
  68. LegacyAsyncFunctionDone,
  69. LegacyFunction,
  70. LegacySyncFunction,
  71. LegacyValue,
  72. NULL,
  73. TRUE,
  74. types,
  75. } from './legacy/function';
  76. export {
  77. LegacyAsyncImporter,
  78. LegacyImporter,
  79. LegacyImporterResult,
  80. LegacyImporterThis,
  81. LegacySyncImporter,
  82. } from './legacy/importer';
  83. export {
  84. LegacySharedOptions,
  85. LegacyFileOptions,
  86. LegacyStringOptions,
  87. LegacyOptions,
  88. } from './legacy/options';
  89. export {LegacyPluginThis} from './legacy/plugin_this';
  90. export {LegacyResult, render, renderSync} from './legacy/render';
  91. /**
  92. * Information about the Sass implementation. This always begins with a unique
  93. * identifier for the Sass implementation, followed by U+0009 TAB, followed by
  94. * its npm package version. Some implementations include additional information
  95. * as well, but not in any standardized format.
  96. *
  97. * * For Dart Sass, the implementation name is `dart-sass`.
  98. * * For Node Sass, the implementation name is `node-sass`.
  99. * * For the embedded host, the implementation name is `sass-embedded`.
  100. */
  101. export const info: string;