UNPKG

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