6f0bce5f3beb7145a247d9448c80ba0818bcd098ff85df8a97b22d983da4e5be5d0bb893e3e32a93f151dc0a1e5f06f97b50997f7c8d7a65dc13e0b28e23ae 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  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, LoggerWarnOptions, 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. ChannelName,
  48. ChannelNameHsl,
  49. ChannelNameHwb,
  50. ChannelNameLch,
  51. ChannelNameLab,
  52. ChannelNameRgb,
  53. ChannelNameXyz,
  54. ColorSpaceHsl,
  55. ColorSpaceHwb,
  56. ColorSpaceLch,
  57. ColorSpaceLab,
  58. ColorSpaceRgb,
  59. ColorSpaceXyz,
  60. GamutMapMethod,
  61. HueInterpolationMethod,
  62. KnownColorSpace,
  63. ListSeparator,
  64. PolarColorSpace,
  65. RectangularColorSpace,
  66. SassArgumentList,
  67. SassBoolean,
  68. SassCalculation,
  69. SassColor,
  70. SassFunction,
  71. SassList,
  72. SassMap,
  73. SassMixin,
  74. SassNumber,
  75. SassString,
  76. Value,
  77. sassFalse,
  78. sassNull,
  79. sassTrue,
  80. } from './value';
  81. // Legacy APIs
  82. export {LegacyException} from './legacy/exception';
  83. export {
  84. FALSE,
  85. LegacyAsyncFunction,
  86. LegacyAsyncFunctionDone,
  87. LegacyFunction,
  88. LegacySyncFunction,
  89. LegacyValue,
  90. NULL,
  91. TRUE,
  92. types,
  93. } from './legacy/function';
  94. export {
  95. LegacyAsyncImporter,
  96. LegacyImporter,
  97. LegacyImporterResult,
  98. LegacyImporterThis,
  99. LegacySyncImporter,
  100. } from './legacy/importer';
  101. export {
  102. LegacySharedOptions,
  103. LegacyFileOptions,
  104. LegacyStringOptions,
  105. LegacyOptions,
  106. } from './legacy/options';
  107. export {LegacyPluginThis} from './legacy/plugin_this';
  108. export {LegacyResult, render, renderSync} from './legacy/render';
  109. /**
  110. * Information about the Sass implementation. This always begins with a unique
  111. * identifier for the Sass implementation, followed by U+0009 TAB, followed by
  112. * its npm package version. Some implementations include additional information
  113. * as well, but not in any standardized format.
  114. *
  115. * * For Dart Sass, the implementation name is `dart-sass`.
  116. * * For Node Sass, the implementation name is `node-sass`.
  117. * * For the embedded host, the implementation name is `sass-embedded`.
  118. */
  119. export const info: string;