mirror of
https://github.com/sass/sass.git
synced 2024-09-21 02:27:30 +00:00
Update to TypeDoc 0.24 (#3581)
This commit is contained in:
parent
d2b85f8f8e
commit
1f88ea8db4
@ -12,14 +12,14 @@ functions}.
|
||||
## Usage
|
||||
|
||||
The JavaScript API provides two entrypoints for compiling Sass to CSS, each of
|
||||
which has a synchronous variant that returns a plain [[CompileResult]] and an
|
||||
asynchronous variant that returns a `Promise`. **The asynchronous variants are
|
||||
much slower,** but they allow custom importers and functions to run
|
||||
which has a synchronous variant that returns a plain {@link CompileResult} and
|
||||
an asynchronous variant that returns a `Promise`. **The asynchronous variants
|
||||
are much slower,** but they allow custom importers and functions to run
|
||||
asynchronously.
|
||||
|
||||
* [[compile]] and [[compileAsync]] take a path to a Sass file and return the
|
||||
result of compiling that file to CSS. These functions accept an additional
|
||||
[[Options]] argument.
|
||||
* {@link compile} and {@link compileAsync} take a path to a Sass file and return
|
||||
the result of compiling that file to CSS. These functions accept an additional
|
||||
{@link Options} argument.
|
||||
|
||||
```js
|
||||
const sass = require('sass');
|
||||
@ -31,9 +31,10 @@ asynchronously.
|
||||
console.log(compressed.css);
|
||||
```
|
||||
|
||||
* [[compileString]] and [[compileStringAsync]] take a string that represents the
|
||||
contents of a Sass file and return the result of compiling that file to CSS.
|
||||
These functions accept an additional [[StringOptions]] argument.
|
||||
* {@link compileString} and {@link compileStringAsync} take a string that
|
||||
represents the contents of a Sass file and return the result of compiling that
|
||||
file to CSS. These functions accept an additional {@link StringOptions}
|
||||
argument.
|
||||
|
||||
```js
|
||||
const sass = require('sass');
|
||||
@ -80,10 +81,10 @@ which is a native extension wrapper for the deprecated [LibSass] implementation.
|
||||
[LibSass]: https://sass-lang.com/libsass
|
||||
|
||||
The legacy API has two entrypoints for compiling Sass to CSS. Each one can
|
||||
compile either a Sass file by passing in [[LegacyFileOptions]] or a string of
|
||||
Sass code by passing in a [[LegacyStringOptions]].
|
||||
compile either a Sass file by passing in {@link LegacyFileOptions} or a string
|
||||
of Sass code by passing in a {@link LegacyStringOptions}.
|
||||
|
||||
* [[renderSync]] runs synchronously. It's **by far the fastest option** when
|
||||
* {@link renderSync} runs synchronously. It's **by far the fastest option** when
|
||||
using Dart Sass, but at the cost of only supporting synchronous {@link
|
||||
LegacyImporter | importer} and {@link LegacyFunction | function} plugins.
|
||||
|
||||
@ -94,7 +95,7 @@ Sass code by passing in a [[LegacyStringOptions]].
|
||||
console.log(result.css.toString());
|
||||
```
|
||||
|
||||
* [[render]] runs asynchronously and calls a callback when it finishes. It's
|
||||
* {@link render} runs asynchronously and calls a callback when it finishes. It's
|
||||
much slower when using Dart Sass, but it supports asynchronous {@link
|
||||
LegacyImporter | importer} and {@link LegacyFunction | function} plugins.
|
||||
|
||||
|
49
js-api-doc/compile.d.ts
vendored
49
js-api-doc/compile.d.ts
vendored
@ -3,8 +3,8 @@ import {RawSourceMap} from 'source-map-js';
|
||||
import {Options, StringOptions} from './options';
|
||||
|
||||
/**
|
||||
* The result of compiling Sass to CSS. Returned by [[compile]],
|
||||
* [[compileAsync]], [[compileString]], and [[compileStringAsync]].
|
||||
* The result of compiling Sass to CSS. Returned by {@link compile}, {@link
|
||||
* compileAsync}, {@link compileString}, and {@link compileStringAsync}.
|
||||
*
|
||||
* @category Compile
|
||||
*/
|
||||
@ -29,19 +29,20 @@ export interface CompileResult {
|
||||
* generated CSS back to locations in the Sass source code.
|
||||
*
|
||||
* This typically uses absolute `file:` URLs to refer to Sass files, although
|
||||
* this can be controlled by having a custom [[Importer]] return
|
||||
* [[ImporterResult.sourceMapUrl]].
|
||||
* this can be controlled by having a custom {@link Importer} return {@link
|
||||
* ImporterResult.sourceMapUrl}.
|
||||
*
|
||||
* This is set if and only if [[Options.sourceMap]] is `true`.
|
||||
* This is set if and only if {@link Options.sourceMap} is `true`.
|
||||
*/
|
||||
sourceMap?: RawSourceMap;
|
||||
}
|
||||
|
||||
/**
|
||||
* Synchronously compiles the Sass file at `path` to CSS. If it succeeds it
|
||||
* returns a [[CompileResult]], and if it fails it throws an [[Exception]].
|
||||
* returns a {@link CompileResult}, and if it fails it throws an {@link
|
||||
* Exception}.
|
||||
*
|
||||
* This only allows synchronous [[Importer]]s and [[CustomFunction]]s.
|
||||
* This only allows synchronous {@link Importer}s and {@link CustomFunction}s.
|
||||
*
|
||||
* @example
|
||||
*
|
||||
@ -59,15 +60,15 @@ export function compile(path: string, options?: Options<'sync'>): CompileResult;
|
||||
|
||||
/**
|
||||
* Asynchronously compiles the Sass file at `path` to CSS. Returns a promise
|
||||
* that resolves with a [[CompileResult]] if it succeeds and rejects with an
|
||||
* [[Exception]] if it fails.
|
||||
* that resolves with a {@link CompileResult} if it succeeds and rejects with an
|
||||
* {@link Exception} if it fails.
|
||||
*
|
||||
* This only allows synchronous or asynchronous [[Importer]]s and
|
||||
* [[CustomFunction]]s.
|
||||
* This only allows synchronous or asynchronous {@link Importer}s and
|
||||
* {@link CustomFunction}s.
|
||||
*
|
||||
* **Heads up!** When using Dart Sass, **[[compile]] is almost twice as fast as
|
||||
* [[compileAsync]]**, due to the overhead of making the entire evaluation
|
||||
* process asynchronous.
|
||||
* **Heads up!** When using Dart Sass, **{@link compile} is almost twice as fast
|
||||
* as {@link compileAsync}**, due to the overhead of making the entire
|
||||
* evaluation process asynchronous.
|
||||
*
|
||||
* @example
|
||||
*
|
||||
@ -88,10 +89,10 @@ export function compileAsync(
|
||||
|
||||
/**
|
||||
* Synchronously compiles a stylesheet whose contents is `source` to CSS. If it
|
||||
* succeeds it returns a [[CompileResult]], and if it fails it throws an
|
||||
* [[Exception]].
|
||||
* succeeds it returns a {@link CompileResult}, and if it fails it throws an
|
||||
* {@link Exception}.
|
||||
*
|
||||
* This only allows synchronous [[Importer]]s and [[CustomFunction]]s.
|
||||
* This only allows synchronous {@link Importer}s and {@link CustomFunction}s.
|
||||
*
|
||||
* @example
|
||||
*
|
||||
@ -118,15 +119,15 @@ export function compileString(
|
||||
|
||||
/**
|
||||
* Asynchronously compiles a stylesheet whose contents is `source` to CSS.
|
||||
* Returns a promise that resolves with a [[CompileResult]] if it succeeds and
|
||||
* rejects with an [[Exception]] if it fails.
|
||||
* Returns a promise that resolves with a {@link CompileResult} if it succeeds
|
||||
* and rejects with an {@link Exception} if it fails.
|
||||
*
|
||||
* This only allows synchronous or asynchronous [[Importer]]s and
|
||||
* [[CustomFunction]]s.
|
||||
* This only allows synchronous or asynchronous {@link Importer}s and {@link
|
||||
* CustomFunction}s.
|
||||
*
|
||||
* **Heads up!** When using Dart Sass, **[[compile]] is almost twice as fast as
|
||||
* [[compileAsync]]**, due to the overhead of making the entire evaluation
|
||||
* process asynchronous.
|
||||
* **Heads up!** When using Dart Sass, **{@link compile} is almost twice as fast
|
||||
* as {@link compileAsync}**, due to the overhead of making the entire
|
||||
* evaluation process asynchronous.
|
||||
*
|
||||
* @example
|
||||
*
|
||||
|
14
js-api-doc/exception.d.ts
vendored
14
js-api-doc/exception.d.ts
vendored
@ -12,18 +12,18 @@ export class Exception extends Error {
|
||||
* A human-friendly representation of the exception.
|
||||
*
|
||||
* Because many tools simply print `Error.message` directly, this includes not
|
||||
* only the textual description of what went wrong (the [[sassMessage]]) but
|
||||
* also an indication of where in the Sass stylesheet the error occurred (the
|
||||
* [[span]]) and the Sass stack trace at the point of error (the
|
||||
* [[sassStack]]).
|
||||
* only the textual description of what went wrong (the {@link sassMessage})
|
||||
* but also an indication of where in the Sass stylesheet the error occurred
|
||||
* (the {@link span}) and the Sass stack trace at the point of error (the
|
||||
* {@link sassStack}).
|
||||
*/
|
||||
message: string;
|
||||
|
||||
/**
|
||||
* A textual description of what went wrong.
|
||||
*
|
||||
* Unlike [[message]], this does *not* include representations of [[span]] or
|
||||
* [[sassStack]].
|
||||
* Unlike {@link message}, this does *not* include representations of {@link
|
||||
* span} or {@link sassStack}.
|
||||
*/
|
||||
readonly sassMessage: string;
|
||||
|
||||
@ -36,6 +36,6 @@ export class Exception extends Error {
|
||||
/** The location the error occurred in the Sass file that triggered it. */
|
||||
readonly span: SourceSpan;
|
||||
|
||||
/** Returns the same string as [[message]]. */
|
||||
/** Returns the same string as {@link message}. */
|
||||
toString(): string;
|
||||
}
|
||||
|
112
js-api-doc/importer.d.ts
vendored
112
js-api-doc/importer.d.ts
vendored
@ -3,22 +3,23 @@ import {PromiseOr} from './util/promise_or';
|
||||
|
||||
/**
|
||||
* A special type of importer that redirects all loads to existing files on
|
||||
* disk. Although this is less powerful than a full [[Importer]], it
|
||||
* disk. Although this is less powerful than a full {@link Importer}, it
|
||||
* automatically takes care of Sass features like resolving partials and file
|
||||
* extensions and of loading the file from disk.
|
||||
*
|
||||
* Like all importers, this implements custom Sass loading logic for [`@use`
|
||||
* rules](https://sass-lang.com/documentation/at-rules/use) and [`@import`
|
||||
* rules](https://sass-lang.com/documentation/at-rules/import). It can be passed
|
||||
* to [[Options.importers]] or [[StringOptionsWithImporter.importer]].
|
||||
* to {@link Options.importers} or {@link StringOptionsWithImporter.importer}.
|
||||
*
|
||||
* @typeParam sync - A `FileImporter<'sync'>`'s [[findFileUrl]] must return
|
||||
* synchronously, but in return it can be passed to [[compile]] and
|
||||
* [[compileString]] in addition to [[compileAsync]] and [[compileStringAsync]].
|
||||
* @typeParam sync - A `FileImporter<'sync'>`'s {@link findFileUrl} must return
|
||||
* synchronously, but in return it can be passed to {@link compile} and {@link
|
||||
* compileString} in addition to {@link compileAsync} and {@link
|
||||
* compileStringAsync}.
|
||||
*
|
||||
* A `FileImporter<'async'>`'s [[findFileUrl]] may either return synchronously
|
||||
* or asynchronously, but it can only be used with [[compileAsync]] and
|
||||
* [[compileStringAsync]].
|
||||
* A `FileImporter<'async'>`'s {@link findFileUrl} may either return
|
||||
* synchronously or asynchronously, but it can only be used with {@link
|
||||
* compileAsync} and {@link compileStringAsync}.
|
||||
*
|
||||
* @example
|
||||
*
|
||||
@ -48,12 +49,12 @@ export interface FileImporter<
|
||||
* [`@import`](https://sass-lang.com/documentation/at-rules/import)) to a file
|
||||
* on disk.
|
||||
*
|
||||
* Unlike an [[Importer]], the compiler will automatically handle relative
|
||||
* loads for a [[FileImporter]]. See [[Options.importers]] for more details on
|
||||
* the way loads are resolved.
|
||||
* Unlike an {@link Importer}, the compiler will automatically handle relative
|
||||
* loads for a {@link FileImporter}. See {@link Options.importers} for more
|
||||
* details on the way loads are resolved.
|
||||
*
|
||||
* @param url - The loaded URL. Since this might be relative, it's represented
|
||||
* as a string rather than a [[URL]] object.
|
||||
* as a string rather than a {@link URL} object.
|
||||
*
|
||||
* @param options.fromImport - Whether this is being invoked because of a Sass
|
||||
* `@import` rule, as opposed to a `@use` or `@forward` rule.
|
||||
@ -73,8 +74,8 @@ export interface FileImporter<
|
||||
* handle it.
|
||||
*
|
||||
* This may also return a `Promise`, but if it does the importer may only be
|
||||
* passed to [[compileAsync]] and [[compileStringAsync]], not [[compile]] or
|
||||
* [[compileString]].
|
||||
* passed to {@link compileAsync} and {@link compileStringAsync}, not {@link
|
||||
* compile} or {@link compileString}.
|
||||
*
|
||||
* @throws any - If this importer recognizes `url` but determines that it's
|
||||
* invalid, it may throw an exception that will be wrapped by Sass. If the
|
||||
@ -95,35 +96,38 @@ export interface FileImporter<
|
||||
* An object that implements custom Sass loading logic for [`@use`
|
||||
* rules](https://sass-lang.com/documentation/at-rules/use) and [`@import`
|
||||
* rules](https://sass-lang.com/documentation/at-rules/import). It can be passed
|
||||
* to [[Options.importers]] or [[StringOptionsWithImporter.importer]].
|
||||
* to {@link Options.importers} or {@link StringOptionsWithImporter.importer}.
|
||||
*
|
||||
* Importers that simply redirect to files on disk are encouraged to use the
|
||||
* [[FileImporter]] interface instead.
|
||||
* {@link FileImporter} interface instead.
|
||||
*
|
||||
* See [[Options.importers]] for more details on the way loads are resolved.
|
||||
*
|
||||
* @typeParam sync - An `Importer<'sync'>`'s [[canonicalize]] and [[load]] must
|
||||
* return synchronously, but in return it can be passed to [[compile]] and
|
||||
* [[compileString]] in addition to [[compileAsync]] and [[compileStringAsync]].
|
||||
*
|
||||
* An `Importer<'async'>`'s [[canonicalize]] and [[load]] may either return
|
||||
* synchronously or asynchronously, but it can only be used with
|
||||
* [[compileAsync]] and [[compileStringAsync]].
|
||||
*
|
||||
* @example Resolving a Load
|
||||
* ### Resolving a Load
|
||||
*
|
||||
* This is the process of resolving a load using a custom importer:
|
||||
*
|
||||
* - The compiler encounters `@use "db:foo/bar/baz"`.
|
||||
* - It calls [[canonicalize]] with `"db:foo/bar/baz"`.
|
||||
* - [[canonicalize]] returns `new URL("db:foo/bar/baz/_index.scss")`.
|
||||
* - It calls {@link canonicalize} with `"db:foo/bar/baz"`.
|
||||
* - {@link canonicalize} returns `new URL("db:foo/bar/baz/_index.scss")`.
|
||||
* - If the compiler has already loaded a stylesheet with this canonical URL, it
|
||||
* re-uses the existing module.
|
||||
* - Otherwise, it calls [[load]] with `new URL("db:foo/bar/baz/_index.scss")`.
|
||||
* - [[load]] returns an [[ImporterResult]] that the compiler uses as the
|
||||
* contents of the module.
|
||||
* - Otherwise, it calls {@link load} with `new
|
||||
* URL("db:foo/bar/baz/_index.scss")`.
|
||||
* - {@link load} returns an {@link ImporterResult} that the compiler uses as
|
||||
* the contents of the module.
|
||||
*
|
||||
* @example Code Sample
|
||||
* See {@link Options.importers} for more details on the way loads are resolved
|
||||
* using multiple importers and load paths.
|
||||
*
|
||||
* @typeParam sync - An `Importer<'sync'>`'s {@link canonicalize} and {@link
|
||||
* load} must return synchronously, but in return it can be passed to {@link
|
||||
* compile} and {@link compileString} in addition to {@link compileAsync} and
|
||||
* {@link compileStringAsync}.
|
||||
*
|
||||
* An `Importer<'async'>`'s {@link canonicalize} and {@link load} may either
|
||||
* return synchronously or asynchronously, but it can only be used with {@link
|
||||
* compileAsync} and {@link compileStringAsync}.
|
||||
*
|
||||
* @example
|
||||
*
|
||||
* ```js
|
||||
* sass.compile('style.scss', {
|
||||
@ -192,29 +196,29 @@ export interface Importer<sync extends 'sync' | 'async' = 'sync' | 'async'> {
|
||||
*
|
||||
* If no stylesheets are found, the importer should return `null`.
|
||||
*
|
||||
* Calling [[canonicalize]] multiple times with the same URL must return the
|
||||
* same result. Calling [[canonicalize]] with a URL returned by a previous
|
||||
* call to [[canonicalize]] must return that URL.
|
||||
* Calling {@link canonicalize} multiple times with the same URL must return
|
||||
* the same result. Calling {@link canonicalize} with a URL returned by a
|
||||
* previous call to {@link canonicalize} must return that URL.
|
||||
*
|
||||
* Relative loads in stylesheets loaded from an importer are handled by
|
||||
* resolving the loaded URL relative to the canonical URL of the stylesheet
|
||||
* that contains it, and passing that URL back to the importer's
|
||||
* [[canonicalize]] method. For example, suppose the "Resolving a Load"
|
||||
* example {@link Importer | above} returned a stylesheet that contained
|
||||
* `@use "mixins"`:
|
||||
* that contains it, and passing that URL back to the importer's {@link
|
||||
* canonicalize} method. For example, suppose the "Resolving a Load" example
|
||||
* {@link Importer | above} returned a stylesheet that contained `@use
|
||||
* "mixins"`:
|
||||
*
|
||||
* - The compiler resolves the URL `mixins` relative to the current
|
||||
* stylesheet's canonical URL `db:foo/bar/baz/_index.scss` to get
|
||||
* `db:foo/bar/baz/mixins`.
|
||||
* - It calls [[canonicalize]] with `"db:foo/bar/baz/mixins"`.
|
||||
* - [[canonicalize]] returns `new URL("db:foo/bar/baz/_mixins.scss")`.
|
||||
* - It calls {@link canonicalize} with `"db:foo/bar/baz/mixins"`.
|
||||
* - {@link canonicalize} returns `new URL("db:foo/bar/baz/_mixins.scss")`.
|
||||
*
|
||||
* Because of this, [[canonicalize]] must return a meaningful result when
|
||||
* called with a URL relative to one returned by an earlier call to
|
||||
* [[canonicalize]].
|
||||
* Because of this, {@link canonicalize} must return a meaningful result when
|
||||
* called with a URL relative to one returned by an earlier call to {@link
|
||||
* canonicalize}.
|
||||
*
|
||||
* @param url - The loaded URL. Since this might be relative, it's represented
|
||||
* as a string rather than a [[URL]] object.
|
||||
* as a string rather than a {@link URL} object.
|
||||
*
|
||||
* @param options.fromImport - Whether this is being invoked because of a Sass
|
||||
* `@import` rule, as opposed to a `@use` or `@forward` rule.
|
||||
@ -227,8 +231,8 @@ export interface Importer<sync extends 'sync' | 'async' = 'sync' | 'async'> {
|
||||
* Options.loadPaths | load paths} may handle the load.
|
||||
*
|
||||
* This may also return a `Promise`, but if it does the importer may only be
|
||||
* passed to [[compileAsync]] and [[compileStringAsync]], not [[compile]] or
|
||||
* [[compileString]].
|
||||
* passed to {@link compileAsync} and {@link compileStringAsync}, not {@link
|
||||
* compile} or {@link compileString}.
|
||||
*
|
||||
* @throws any - If this importer recognizes `url` but determines that it's
|
||||
* invalid, it may throw an exception that will be wrapped by Sass. If the
|
||||
@ -246,15 +250,15 @@ export interface Importer<sync extends 'sync' | 'async' = 'sync' | 'async'> {
|
||||
* importer can't find the stylesheet it refers to.
|
||||
*
|
||||
* @param canonicalUrl - The canonical URL of the stylesheet to load. This is
|
||||
* guaranteed to come from a call to [[canonicalize]], although not every call
|
||||
* to [[canonicalize]] will result in a call to [[load]].
|
||||
* guaranteed to come from a call to {@link canonicalize}, although not every
|
||||
* call to {@link canonicalize} will result in a call to {@link load}.
|
||||
*
|
||||
* @returns The contents of the stylesheet at `canonicalUrl` if it can be
|
||||
* loaded, or `null` if it can't.
|
||||
*
|
||||
* This may also return a `Promise`, but if it does the importer may only be
|
||||
* passed to [[compileAsync]] and [[compileStringAsync]], not [[compile]] or
|
||||
* [[compileString]].
|
||||
* passed to {@link compileAsync} and {@link compileStringAsync}, not {@link
|
||||
* compile} or {@link compileString}.
|
||||
*
|
||||
* @throws any - If this importer finds a stylesheet at `url` but it fails to
|
||||
* load for some reason, or if `url` is uniquely associated with this importer
|
||||
@ -271,7 +275,7 @@ export interface Importer<sync extends 'sync' | 'async' = 'sync' | 'async'> {
|
||||
}
|
||||
|
||||
/**
|
||||
* The result of successfully loading a stylesheet with an [[Importer]].
|
||||
* The result of successfully loading a stylesheet with an {@link Importer}.
|
||||
*
|
||||
* @category Importer
|
||||
*/
|
||||
@ -279,7 +283,7 @@ export interface ImporterResult {
|
||||
/** The contents of the stylesheet. */
|
||||
contents: string;
|
||||
|
||||
/** The syntax with which to parse [[contents]]. */
|
||||
/** The syntax with which to parse {@link contents}. */
|
||||
syntax: Syntax;
|
||||
|
||||
/**
|
||||
|
25
js-api-doc/legacy/exception.d.ts
vendored
25
js-api-doc/legacy/exception.d.ts
vendored
@ -1,11 +1,11 @@
|
||||
/**
|
||||
* The exception type thrown by [[renderSync]] and passed as the error to
|
||||
* [[render]]'s callback.
|
||||
* The exception type thrown by {@link renderSync} and passed as the error to
|
||||
* {@link render}'s callback.
|
||||
*
|
||||
* @category Legacy
|
||||
* @deprecated This is only thrown by the legacy [[render]] and [[renderSync]]
|
||||
* APIs. Use [[compile]], [[compileString]], [[compileAsync]], and
|
||||
* [[compileStringAsync]] instead.
|
||||
* @deprecated This is only thrown by the legacy {@link render} and {@link
|
||||
* renderSync} APIs. Use {@link compile}, {@link compileString}, {@link
|
||||
* compileAsync}, and {@link compileStringAsync} instead.
|
||||
*/
|
||||
export interface LegacyException extends Error {
|
||||
/**
|
||||
@ -17,8 +17,8 @@ export interface LegacyException extends Error {
|
||||
|
||||
/**
|
||||
* The error message. For Dart Sass, this is the same as the result of calling
|
||||
* [[toString]], which is itself the same as [[message]] but with the prefix
|
||||
* "Error:".
|
||||
* {@link toString}, which is itself the same as {@link message} but with the
|
||||
* prefix "Error:".
|
||||
*/
|
||||
formatted: string;
|
||||
|
||||
@ -29,8 +29,9 @@ export interface LegacyException extends Error {
|
||||
line?: number;
|
||||
|
||||
/**
|
||||
* The (1-based) column number within [[line]] at which the error occurred, if
|
||||
* this exception is associated with a specific Sass file location.
|
||||
* The (1-based) column number within {@link line} at which the error
|
||||
* occurred, if this exception is associated with a specific Sass file
|
||||
* location.
|
||||
*/
|
||||
column?: number;
|
||||
|
||||
@ -46,9 +47,9 @@ export interface LegacyException extends Error {
|
||||
*
|
||||
* * If the Sass file was loaded from disk, this is the path to that file.
|
||||
* * If the Sass file was generated by an importer, this is its canonical URL.
|
||||
* * If the Sass file was passed as [[LegacyStringOptions.data]] without a
|
||||
* corresponding [[LegacyStringOptions.file]], this is the special string
|
||||
* `"stdin"`.
|
||||
* * If the Sass file was passed as {@link LegacyStringOptions.data} without a
|
||||
* corresponding {@link LegacyStringOptions.file}, this is the special
|
||||
* string `"stdin"`.
|
||||
*/
|
||||
file?: string;
|
||||
}
|
||||
|
117
js-api-doc/legacy/function.d.ts
vendored
117
js-api-doc/legacy/function.d.ts
vendored
@ -2,8 +2,8 @@ import {LegacyPluginThis} from './plugin_this';
|
||||
|
||||
/**
|
||||
* A synchronous callback that implements a custom Sass function. This can be
|
||||
* passed to [[LegacySharedOptions.functions]] for either [[render]] or
|
||||
* [[renderSync]].
|
||||
* passed to {@link LegacySharedOptions.functions} for either {@link render} or
|
||||
* {@link renderSync}.
|
||||
*
|
||||
* If this throws an error, Sass will treat that as the function failing with
|
||||
* that error message.
|
||||
@ -25,14 +25,15 @@ import {LegacyPluginThis} from './plugin_this';
|
||||
* ```
|
||||
*
|
||||
* @param args - One argument for each argument that's declared in the signature
|
||||
* that's passed to [[LegacySharedOptions.functions]]. If the signature [takes
|
||||
* arbitrary arguments](https://sass-lang.com/documentation/at-rules/function#taking-arbitrary-arguments),
|
||||
* that's passed to {@link LegacySharedOptions.functions}. If the signature
|
||||
* [takes arbitrary
|
||||
* arguments](https://sass-lang.com/documentation/at-rules/function#taking-arbitrary-arguments),
|
||||
* they're passed as a single argument list in the last argument.
|
||||
*
|
||||
* @category Legacy
|
||||
* @deprecated This only works with the legacy [[render]] and [[renderSync]]
|
||||
* APIs. Use [[CustomFunction]] with [[compile]], [[compileString]],
|
||||
* [[compileAsync]], and [[compileStringAsync]] instead.
|
||||
* @deprecated This only works with the legacy {@link render} and {@link
|
||||
* renderSync} APIs. Use {@link CustomFunction} with {@link compile}, {@link
|
||||
* compileString}, {@link compileAsync}, and {@link compileStringAsync} instead.
|
||||
*/
|
||||
export type LegacySyncFunction = (
|
||||
this: LegacyPluginThis,
|
||||
@ -41,7 +42,7 @@ export type LegacySyncFunction = (
|
||||
|
||||
/**
|
||||
* An asynchronous callback that implements a custom Sass function. This can be
|
||||
* passed to [[LegacySharedOptions.functions]], but only for [[render]].
|
||||
* passed to {@link LegacySharedOptions.functions}, but only for {@link render}.
|
||||
*
|
||||
* An asynchronous function must return `undefined`. Its final argument will
|
||||
* always be a callback, which it should call with the result of the function
|
||||
@ -69,16 +70,16 @@ export type LegacySyncFunction = (
|
||||
* ```
|
||||
*
|
||||
* This is passed one argument for each argument that's declared in the
|
||||
* signature that's passed to [[LegacySharedOptions.functions]]. If the
|
||||
* signature that's passed to {@link LegacySharedOptions.functions}. If the
|
||||
* signature [takes arbitrary
|
||||
* arguments](https://sass-lang.com/documentation/at-rules/function#taking-arbitrary-arguments),
|
||||
* they're passed as a single argument list in the last argument before the
|
||||
* callback.
|
||||
*
|
||||
* @category Legacy
|
||||
* @deprecated This only works with the legacy [[render]] and [[renderSync]]
|
||||
* APIs. Use [[CustomFunction]] with [[compile]], [[compileString]],
|
||||
* [[compileAsync]], and [[compileStringAsync]] instead.
|
||||
* @deprecated This only works with the legacy {@link render} and {@link
|
||||
* renderSync} APIs. Use {@link CustomFunction} with {@link compile}, {@link
|
||||
* compileString}, {@link compileAsync}, and {@link compileStringAsync} instead.
|
||||
*/
|
||||
export type LegacyAsyncFunction =
|
||||
| ((this: LegacyPluginThis, done: (result: LegacyValue) => void) => void)
|
||||
@ -133,34 +134,34 @@ export type LegacyAsyncFunction =
|
||||
) => void);
|
||||
|
||||
/**
|
||||
* The function called by a [[LegacyAsyncFunction]] to indicate that it's
|
||||
* The function called by a {@link LegacyAsyncFunction} to indicate that it's
|
||||
* finished.
|
||||
*
|
||||
* @param result - If this is a [[LegacyValue]], that indicates that the
|
||||
* function call completed successfully. If it's a [[types.Error]], that
|
||||
* @param result - If this is a {@link LegacyValue}, that indicates that the
|
||||
* function call completed successfully. If it's a {@link types.Error}, that
|
||||
* indicates that the function call failed.
|
||||
*
|
||||
* @category Legacy
|
||||
* @deprecated This only works with the legacy [[render]] and [[renderSync]]
|
||||
* APIs. Use [[CustomFunction]] with [[compile]], [[compileString]],
|
||||
* [[compileAsync]], and [[compileStringAsync]] instead.
|
||||
* @deprecated This only works with the legacy {@link render} and {@link
|
||||
* renderSync} APIs. Use {@link CustomFunction} with {@link compile}, {@link
|
||||
* compileString}, {@link compileAsync}, and {@link compileStringAsync} instead.
|
||||
*/
|
||||
export type LegacyAsyncFunctionDone = (
|
||||
result: LegacyValue | types.Error
|
||||
) => void;
|
||||
|
||||
/**
|
||||
* A callback that implements a custom Sass function. For [[renderSync]], this
|
||||
* must be a [[LegacySyncFunction]] which returns its result directly; for
|
||||
* [[render]], it may be either a [[LegacySyncFunction]] or a
|
||||
* [[LegacyAsyncFunction]] which calls a callback with its result.
|
||||
* A callback that implements a custom Sass function. For {@link renderSync},
|
||||
* this must be a {@link LegacySyncFunction} which returns its result directly;
|
||||
* for {@link render}, it may be either a {@link LegacySyncFunction} or a {@link
|
||||
* LegacyAsyncFunction} which calls a callback with its result.
|
||||
*
|
||||
* See [[LegacySharedOptions.functions]] for more details.
|
||||
* See {@link LegacySharedOptions.functions} for more details.
|
||||
*
|
||||
* @category Legacy
|
||||
* @deprecated This only works with the legacy [[render]] and [[renderSync]]
|
||||
* APIs. Use [[CustomFunction]] with [[compile]], [[compileString]],
|
||||
* [[compileAsync]], and [[compileStringAsync]] instead.
|
||||
* @deprecated This only works with the legacy {@link render} and {@link
|
||||
* renderSync} APIs. Use {@link CustomFunction} with {@link compile}, {@link
|
||||
* compileString}, {@link compileAsync}, and {@link compileStringAsync} instead.
|
||||
*/
|
||||
export type LegacyFunction<sync extends 'sync' | 'async'> = sync extends 'async'
|
||||
? LegacySyncFunction | LegacyAsyncFunction
|
||||
@ -168,12 +169,12 @@ export type LegacyFunction<sync extends 'sync' | 'async'> = sync extends 'async'
|
||||
|
||||
/**
|
||||
* A type representing all the possible values that may be passed to or returned
|
||||
* from a [[LegacyFunction]].
|
||||
* from a {@link LegacyFunction}.
|
||||
*
|
||||
* @category Legacy
|
||||
* @deprecated This only works with the legacy [[render]] and [[renderSync]]
|
||||
* APIs. Use [[Value]] with [[compile]], [[compileString]], [[compileAsync]],
|
||||
* and [[compileStringAsync]] instead.
|
||||
* @deprecated This only works with the legacy {@link render} and {@link
|
||||
* renderSync} APIs. Use {@link Value} with {@link compile}, {@link
|
||||
* compileString}, {@link compileAsync}, and {@link compileStringAsync} instead.
|
||||
*/
|
||||
export type LegacyValue =
|
||||
| types.Null
|
||||
@ -188,9 +189,9 @@ export type LegacyValue =
|
||||
* A shorthand for `sass.types.Boolean.TRUE`.
|
||||
*
|
||||
* @category Legacy
|
||||
* @deprecated This only works with the legacy [[render]] and [[renderSync]]
|
||||
* APIs. Use [[sassTrue]] with [[compile]], [[compileString]], [[compileAsync]],
|
||||
* and [[compileStringAsync]] instead.
|
||||
* @deprecated This only works with the legacy {@link render} and {@link
|
||||
* renderSync} APIs. Use {@link sassTrue} with {@link compile}, {@link
|
||||
* compileString}, {@link compileAsync}, and {@link compileStringAsync} instead.
|
||||
*/
|
||||
export const TRUE: types.Boolean<true>;
|
||||
|
||||
@ -198,9 +199,9 @@ export const TRUE: types.Boolean<true>;
|
||||
* A shorthand for `sass.types.Boolean.FALSE`.
|
||||
*
|
||||
* @category Legacy
|
||||
* @deprecated This only works with the legacy [[render]] and [[renderSync]]
|
||||
* APIs. Use [[sassFalse]] with [[compile]], [[compileString]], [[compileAsync]],
|
||||
* and [[compileStringAsync]] instead.
|
||||
* @deprecated This only works with the legacy {@link render} and {@link
|
||||
* renderSync} APIs. Use {@link sassFalse} with {@link compile}, {@link
|
||||
* compileString}, {@link compileAsync}, and {@link compileStringAsync} instead.
|
||||
*/
|
||||
export const FALSE: types.Boolean<false>;
|
||||
|
||||
@ -208,9 +209,9 @@ export const FALSE: types.Boolean<false>;
|
||||
* A shorthand for `sass.types.Null.NULL`.
|
||||
*
|
||||
* @category Legacy
|
||||
* @deprecated This only works with the legacy [[render]] and [[renderSync]]
|
||||
* APIs. Use [[sassNull]] with [[compile]], [[compileString]], [[compileAsync]],
|
||||
* and [[compileStringAsync]] instead.
|
||||
* @deprecated This only works with the legacy {@link render} and {@link
|
||||
* renderSync} APIs. Use {@link sassNull} with {@link compile}, {@link
|
||||
* compileString}, {@link compileAsync}, and {@link compileStringAsync} instead.
|
||||
*/
|
||||
export const NULL: types.Null;
|
||||
|
||||
@ -218,15 +219,15 @@ export const NULL: types.Null;
|
||||
* The namespace for value types used in the legacy function API.
|
||||
*
|
||||
* @category Legacy
|
||||
* @deprecated This only works with the legacy [[render]] and [[renderSync]]
|
||||
* APIs. Use [[Value]] with [[compile]], [[compileString]], [[compileAsync]],
|
||||
* and [[compileStringAsync]] instead.
|
||||
* @deprecated This only works with the legacy {@link render} and {@link
|
||||
* renderSync} APIs. Use {@link Value} with {@link compile}, {@link
|
||||
* compileString}, {@link compileAsync}, and {@link compileStringAsync} instead.
|
||||
*/
|
||||
export namespace types {
|
||||
/**
|
||||
* The class for Sass's singleton [`null`
|
||||
* value](https://sass-lang.com/documentation/values/null). The value itself
|
||||
* can be accessed through the [[NULL]] field.
|
||||
* can be accessed through the {@link NULL} field.
|
||||
*/
|
||||
export class Null {
|
||||
/** Sass's singleton `null` value. */
|
||||
@ -280,13 +281,13 @@ export namespace types {
|
||||
* Destructively modifies this number by setting its numeric value to
|
||||
* `value`, independent of its units.
|
||||
*
|
||||
* @deprecated Use [[constructor]] instead.
|
||||
* @deprecated Use {@link constructor} instead.
|
||||
*/
|
||||
setValue(value: number): void;
|
||||
|
||||
/**
|
||||
* Returns a string representation of this number's units. Complex units are
|
||||
* returned in the same format that [[constructor]] accepts them.
|
||||
* returned in the same format that {@link constructor} accepts them.
|
||||
*
|
||||
* @example
|
||||
*
|
||||
@ -303,9 +304,9 @@ export namespace types {
|
||||
/**
|
||||
* Destructively modifies this number by setting its units to `unit`,
|
||||
* independent of its numeric value. Complex units are specified in the same
|
||||
* format as [[constructor]].
|
||||
* format as {@link constructor}.
|
||||
*
|
||||
* @deprecated Use [[constructor]] instead.
|
||||
* @deprecated Use {@link constructor} instead.
|
||||
*/
|
||||
setUnit(unit: string): void;
|
||||
}
|
||||
@ -360,7 +361,7 @@ export namespace types {
|
||||
* **Heads up!** Even if the string was originally quoted, this will cause
|
||||
* it to become unquoted.
|
||||
*
|
||||
* @deprecated Use [[constructor]] instead.
|
||||
* @deprecated Use {@link constructor} instead.
|
||||
*/
|
||||
setValue(value: string): void;
|
||||
}
|
||||
@ -373,7 +374,7 @@ export namespace types {
|
||||
* by treating `false` and `null` as falsey and everything else as truthy.
|
||||
*
|
||||
* **Heads up!** Boolean values can't be constructed, they can only be
|
||||
* accessed through the [[TRUE]] and [[FALSE]] constants.
|
||||
* accessed through the {@link TRUE} and {@link FALSE} constants.
|
||||
*/
|
||||
export class Boolean<T extends boolean = boolean> {
|
||||
/**
|
||||
@ -451,7 +452,7 @@ export namespace types {
|
||||
* Sets the red channel of the color. The value must be an integer between 0
|
||||
* and 255 (inclusive).
|
||||
*
|
||||
* @deprecated Use [[constructor]] instead.
|
||||
* @deprecated Use {@link constructor} instead.
|
||||
*/
|
||||
setR(value: number): void;
|
||||
|
||||
@ -474,7 +475,7 @@ export namespace types {
|
||||
* Sets the green channel of the color. The value must be an integer between
|
||||
* 0 and 255 (inclusive).
|
||||
*
|
||||
* @deprecated Use [[constructor]] instead.
|
||||
* @deprecated Use {@link constructor} instead.
|
||||
*/
|
||||
setG(value: number): void;
|
||||
|
||||
@ -497,7 +498,7 @@ export namespace types {
|
||||
* Sets the blue channel of the color. The value must be an integer between
|
||||
* 0 and 255 (inclusive).
|
||||
*
|
||||
* @deprecated Use [[constructor]] instead.
|
||||
* @deprecated Use {@link constructor} instead.
|
||||
*/
|
||||
setB(value: number): void;
|
||||
|
||||
@ -520,7 +521,7 @@ export namespace types {
|
||||
* Sets the alpha channel of the color. The value must be between 0 and 1
|
||||
* (inclusive).
|
||||
*
|
||||
* @deprecated Use [[constructor]] instead.
|
||||
* @deprecated Use {@link constructor} instead.
|
||||
*/
|
||||
setA(value: number): void;
|
||||
}
|
||||
@ -537,8 +538,8 @@ export namespace types {
|
||||
* Creates a new Sass list.
|
||||
*
|
||||
* **Heads up!** The initial values of the list elements are undefined.
|
||||
* These elements must be set using [[setValue]] before accessing them or
|
||||
* passing the list back to Sass.
|
||||
* These elements must be set using {@link setValue} before accessing them
|
||||
* or passing the list back to Sass.
|
||||
*
|
||||
* @example
|
||||
*
|
||||
@ -643,8 +644,8 @@ export namespace types {
|
||||
* Creates a new Sass map.
|
||||
*
|
||||
* **Heads up!** The initial keys and values of the map are undefined. They
|
||||
* must be set using [[setKey]] and [[setValue]] before accessing them or
|
||||
* passing the map back to Sass.
|
||||
* must be set using {@link setKey} and {@link setValue} before accessing
|
||||
* them or passing the map back to Sass.
|
||||
*
|
||||
* @example
|
||||
*
|
||||
@ -748,7 +749,7 @@ export namespace types {
|
||||
/**
|
||||
* An error that can be returned from a Sass function to signal that it
|
||||
* encountered an error. This is the only way to signal an error
|
||||
* asynchronously from a [[LegacyAsyncFunction]].
|
||||
* asynchronously from a {@link LegacyAsyncFunction}.
|
||||
*/
|
||||
export class Error {
|
||||
constructor(message: string);
|
||||
|
61
js-api-doc/legacy/importer.d.ts
vendored
61
js-api-doc/legacy/importer.d.ts
vendored
@ -1,12 +1,12 @@
|
||||
import {LegacyPluginThis} from './plugin_this';
|
||||
|
||||
/**
|
||||
* The value of `this` in the context of a [[LegacyImporter]] function.
|
||||
* The value of `this` in the context of a {@link LegacyImporter} function.
|
||||
*
|
||||
* @category Legacy
|
||||
* @deprecated This is only used by the legacy [[render]] and [[renderSync]]
|
||||
* APIs. Use [[Importer]] with [[compile]], [[compileString]], [[compileAsync]],
|
||||
* and [[compileStringAsync]] instead.
|
||||
* @deprecated This is only used by the legacy {@link render} and {@link
|
||||
* renderSync} APIs. Use {@link Importer} with {@link compile}, {@link
|
||||
* compileString}, {@link compileAsync}, and {@link compileStringAsync} instead.
|
||||
*/
|
||||
interface LegacyImporterThis extends LegacyPluginThis {
|
||||
/**
|
||||
@ -22,8 +22,8 @@ interface LegacyImporterThis extends LegacyPluginThis {
|
||||
}
|
||||
|
||||
/**
|
||||
* The result of running a [[LegacyImporter]]. It must be one of the following
|
||||
* types:
|
||||
* The result of running a {@link LegacyImporter}. It must be one of the
|
||||
* following types:
|
||||
*
|
||||
* * An object with the key `contents` whose value is the contents of a stylesheet
|
||||
* (in SCSS syntax). This causes Sass to load that stylesheet’s contents.
|
||||
@ -38,9 +38,9 @@ interface LegacyImporterThis extends LegacyPluginThis {
|
||||
* object, indicating that importing failed.
|
||||
*
|
||||
* @category Legacy
|
||||
* @deprecated This only works with the legacy [[render]] and [[renderSync]]
|
||||
* APIs. Use [[ImporterResult]] with [[compile]], [[compileString]],
|
||||
* [[compileAsync]], and [[compileStringAsync]] instead.
|
||||
* @deprecated This only works with the legacy {@link render} and {@link
|
||||
* renderSync} APIs. Use {@link ImporterResult} with {@link compile}, {@link
|
||||
* compileString}, {@link compileAsync}, and {@link compileStringAsync} instead.
|
||||
*/
|
||||
export type LegacyImporterResult =
|
||||
| {file: string}
|
||||
@ -52,10 +52,10 @@ export type LegacyImporterResult =
|
||||
* A synchronous callback that implements custom Sass loading logic for
|
||||
* [`@import` rules](https://sass-lang.com/documentation/at-rules/import) and
|
||||
* [`@use` rules](https://sass-lang.com/documentation/at-rules/use). This can be
|
||||
* passed to [[LegacySharedOptions.importer]] for either [[render]] or
|
||||
* [[renderSync]].
|
||||
* passed to {@link LegacySharedOptions.importer} for either {@link render} or
|
||||
* {@link renderSync}.
|
||||
*
|
||||
* See [[LegacySharedOptions.importer]] for more detailed documentation.
|
||||
* See {@link LegacySharedOptions.importer} for more detailed documentation.
|
||||
*
|
||||
* ```js
|
||||
* sass.renderSync({
|
||||
@ -85,9 +85,9 @@ export type LegacyImporterResult =
|
||||
* * If the stylesheet came from the data option, it’s the string "stdin".
|
||||
*
|
||||
* @category Legacy
|
||||
* @deprecated This only works with the legacy [[render]] and [[renderSync]]
|
||||
* APIs. Use [[Importer]] with [[compile]], [[compileString]], [[compileAsync]],
|
||||
* and [[compileStringAsync]] instead.
|
||||
* @deprecated This only works with the legacy {@link render} and {@link
|
||||
* renderSync} APIs. Use {@link Importer} with {@link compile}, {@link
|
||||
* compileString}, {@link compileAsync}, and {@link compileStringAsync} instead.
|
||||
*/
|
||||
type LegacySyncImporter = (
|
||||
this: LegacyImporterThis,
|
||||
@ -99,13 +99,13 @@ type LegacySyncImporter = (
|
||||
* An asynchronous callback that implements custom Sass loading logic for
|
||||
* [`@import` rules](https://sass-lang.com/documentation/at-rules/import) and
|
||||
* [`@use` rules](https://sass-lang.com/documentation/at-rules/use). This can be
|
||||
* passed to [[LegacySharedOptions.importer]] for either [[render]] or
|
||||
* [[renderSync]].
|
||||
* passed to {@link LegacySharedOptions.importer} for either {@link render} or
|
||||
* {@link renderSync}.
|
||||
*
|
||||
* An asynchronous importer must return `undefined`, and then call `done` with
|
||||
* the result of its [[LegacyImporterResult]] once it's done running.
|
||||
* the result of its {@link LegacyImporterResult} once it's done running.
|
||||
*
|
||||
* See [[LegacySharedOptions.importer]] for more detailed documentation.
|
||||
* See {@link LegacySharedOptions.importer} for more detailed documentation.
|
||||
*
|
||||
* ```js
|
||||
* sass.render({
|
||||
@ -137,9 +137,9 @@ type LegacySyncImporter = (
|
||||
* @param done - The callback to call once the importer has finished running.
|
||||
*
|
||||
* @category Legacy
|
||||
* @deprecated This only works with the legacy [[render]] and [[renderSync]]
|
||||
* APIs. Use [[Importer]] with [[compile]], [[compileString]], [[compileAsync]],
|
||||
* and [[compileStringAsync]] instead.
|
||||
* @deprecated This only works with the legacy {@link render} and {@link
|
||||
* renderSync} APIs. Use {@link Importer} with {@link compile}, {@link
|
||||
* compileString}, {@link compileAsync}, and {@link compileStringAsync} instead.
|
||||
*/
|
||||
type LegacyAsyncImporter = (
|
||||
this: LegacyImporterThis,
|
||||
@ -151,17 +151,18 @@ type LegacyAsyncImporter = (
|
||||
/**
|
||||
* A callback that implements custom Sass loading logic for [`@import`
|
||||
* rules](https://sass-lang.com/documentation/at-rules/import) and [`@use`
|
||||
* rules](https://sass-lang.com/documentation/at-rules/use). For [[renderSync]],
|
||||
* this must be a [[LegacySyncImporter]] which returns its result directly; for
|
||||
* [[render]], it may be either a [[LegacySyncImporter]] or a
|
||||
* [[LegacyAsyncImporter]] which calls a callback with its result.
|
||||
* rules](https://sass-lang.com/documentation/at-rules/use). For {@link
|
||||
* renderSync}, this must be a {@link LegacySyncImporter} which returns its
|
||||
* result directly; for {@link render}, it may be either a {@link
|
||||
* LegacySyncImporter} or a {@link LegacyAsyncImporter} which calls a callback
|
||||
* with its result.
|
||||
*
|
||||
* See [[LegacySharedOptions.importer]] for more details.
|
||||
* See {@link LegacySharedOptions.importer} for more details.
|
||||
*
|
||||
* @category Legacy
|
||||
* @deprecated This only works with the legacy [[render]] and [[renderSync]]
|
||||
* APIs. Use [[Importer]] with [[compile]], [[compileString]], [[compileAsync]],
|
||||
* and [[compileStringAsync]] instead.
|
||||
* @deprecated This only works with the legacy {@link render} and {@link
|
||||
* renderSync} APIs. Use {@link Importer} with {@link compile}, {@link
|
||||
* compileString}, {@link compileAsync}, and {@link compileStringAsync} instead.
|
||||
*/
|
||||
export type LegacyImporter<sync = 'sync' | 'async'> = sync extends 'async'
|
||||
? LegacySyncImporter | LegacyAsyncImporter
|
||||
|
130
js-api-doc/legacy/options.d.ts
vendored
130
js-api-doc/legacy/options.d.ts
vendored
@ -3,17 +3,17 @@ import {LegacyImporter} from './importer';
|
||||
import {LegacyFunction} from './function';
|
||||
|
||||
/**
|
||||
* Options for [[render]] and [[renderSync]] that are shared between
|
||||
* [[LegacyFileOptions]] and [[LegacyStringOptions]].
|
||||
* Options for {@link render} and {@link renderSync} that are shared between
|
||||
* {@link LegacyFileOptions} and {@link LegacyStringOptions}.
|
||||
*
|
||||
* @typeParam sync - This lets the TypeScript checker verify that
|
||||
* [[LegacyAsyncImporter]]s and [[LegacyAsyncFunction]]s aren't passed to
|
||||
* [[renderSync]].
|
||||
* @typeParam sync - This lets the TypeScript checker verify that {@link
|
||||
* LegacyAsyncImporter}s and {@link LegacyAsyncFunction}s aren't passed to
|
||||
* {@link renderSync}.
|
||||
*
|
||||
* @category Legacy
|
||||
* @deprecated This only works with the legacy [[render]] and [[renderSync]]
|
||||
* APIs. Use [[Options]] with [[compile]], [[compileString]], [[compileAsync]],
|
||||
* and [[compileStringAsync]] instead.
|
||||
* @deprecated This only works with the legacy {@link render} and {@link
|
||||
* renderSync} APIs. Use {@link Options} with {@link compile}, {@link
|
||||
* compileString}, {@link compileAsync}, and {@link compileStringAsync} instead.
|
||||
*/
|
||||
export interface LegacySharedOptions<sync extends 'sync' | 'async'> {
|
||||
/**
|
||||
@ -67,8 +67,8 @@ export interface LegacySharedOptions<sync extends 'sync' | 'async'> {
|
||||
indentType?: 'space' | 'tab';
|
||||
|
||||
/**
|
||||
* How many spaces or tabs (depending on [[indentType]]) should be used per
|
||||
* indentation level in the generated CSS. It must be between 0 and 10
|
||||
* How many spaces or tabs (depending on {@link indentType}) should be used
|
||||
* per indentation level in the generated CSS. It must be between 0 and 10
|
||||
* (inclusive).
|
||||
*
|
||||
* @defaultValue `2`
|
||||
@ -206,19 +206,19 @@ export interface LegacySharedOptions<sync extends 'sync' | 'async'> {
|
||||
|
||||
/**
|
||||
* Whether or not Sass should generate a source map. If it does, the source
|
||||
* map will be available as [[LegacyResult.map]] (unless [[sourceMapEmbed]] is
|
||||
* `true`).
|
||||
* map will be available as {@link LegacyResult.map} (unless {@link
|
||||
* sourceMapEmbed} is `true`).
|
||||
*
|
||||
* If this option is a string, it’s the path that the source map is expected
|
||||
* to be written to, which is used to link to the source map from the
|
||||
* generated CSS and to link *from* the source map to the Sass source files.
|
||||
* Note that if `sourceMap` is a string and [[outFile]] isn’t passed, Sass
|
||||
* Note that if `sourceMap` is a string and {@link outFile} isn’t passed, Sass
|
||||
* assumes that the CSS will be written to the same directory as the file
|
||||
* option if it’s passed.
|
||||
*
|
||||
* If this option is `true`, the path is assumed to be [[outFile]] with `.map`
|
||||
* added to the end. If it’s `true` and [[outFile]] isn’t passed, it has no
|
||||
* effect.
|
||||
* If this option is `true`, the path is assumed to be {@link outFile} with
|
||||
* `.map` added to the end. If it’s `true` and {@link outFile} isn’t passed,
|
||||
* it has no effect.
|
||||
*
|
||||
* @example
|
||||
*
|
||||
@ -302,12 +302,12 @@ export interface LegacySharedOptions<sync extends 'sync' | 'async'> {
|
||||
* Additional handler(s) for loading files when a [`@use`
|
||||
* rule](https://sass-lang.com/documentation/at-rules/use) or an [`@import`
|
||||
* rule](https://sass-lang.com/documentation/at-rules/import) is encountered.
|
||||
* It can either be a single [[LegacyImporter]] function, or an array of
|
||||
* [[LegacyImporter]]s.
|
||||
* It can either be a single {@link LegacyImporter} function, or an array of
|
||||
* {@link LegacyImporter}s.
|
||||
*
|
||||
* Importers take the URL of the `@import` or `@use` rule and return a
|
||||
* [[LegacyImporterResult]] indicating how to handle that rule. For more
|
||||
* details, see [[LegacySyncImporter]] and [[LegacyAsyncImporter]].
|
||||
* Importers take the URL of the `@import` or `@use` rule and return a {@link
|
||||
* LegacyImporterResult} indicating how to handle that rule. For more details,
|
||||
* see {@link LegacySyncImporter} and {@link LegacyAsyncImporter}.
|
||||
*
|
||||
* Loads are resolved by trying, in order:
|
||||
*
|
||||
@ -318,7 +318,7 @@ export interface LegacySharedOptions<sync extends 'sync' | 'async'> {
|
||||
*
|
||||
* * Loading a file relative to the current working directory.
|
||||
*
|
||||
* * Each load path in [[includePaths]].
|
||||
* * Each load path in {@link includePaths}.
|
||||
*
|
||||
* * Each load path specified in the `SASS_PATH` environment variable, which
|
||||
* should be semicolon-separated on Windows and colon-separated elsewhere.
|
||||
@ -371,7 +371,7 @@ export interface LegacySharedOptions<sync extends 'sync' | 'async'> {
|
||||
* @compatibility feature: "Import order", dart: "1.20.2", node: false
|
||||
*
|
||||
* Versions of Dart Sass before 1.20.2 preferred resolving imports using
|
||||
* [[includePaths]] before resolving them using custom importers.
|
||||
* {@link includePaths} before resolving them using custom importers.
|
||||
*
|
||||
* All versions of Node Sass currently pass imports to importers before
|
||||
* loading them relative to the file in which the `@import` appears. This
|
||||
@ -387,8 +387,8 @@ export interface LegacySharedOptions<sync extends 'sync' | 'async'> {
|
||||
/**
|
||||
* Additional built-in Sass functions that are available in all stylesheets.
|
||||
* This option takes an object whose keys are Sass function signatures and
|
||||
* whose values are [[LegacyFunction]]s. Each function should take the same
|
||||
* arguments as its signature.
|
||||
* whose values are {@link LegacyFunction}s. Each function should take the
|
||||
* same arguments as its signature.
|
||||
*
|
||||
* Functions are passed JavaScript representations of [Sass value
|
||||
* types](https://sass-lang.com/documentation/js-api#value-types), and must
|
||||
@ -464,18 +464,18 @@ export interface LegacySharedOptions<sync extends 'sync' | 'async'> {
|
||||
/**
|
||||
* If this option is set to `true`, Sass won’t print warnings that are caused
|
||||
* by dependencies. A “dependency” is defined as any file that’s loaded
|
||||
* through [[loadPaths]] or [[importer]]. Stylesheets that are imported
|
||||
* relative to the entrypoint are not considered dependencies.
|
||||
* through {@link includePaths} or {@link importer}. Stylesheets that are
|
||||
* imported relative to the entrypoint are not considered dependencies.
|
||||
*
|
||||
* This is useful for silencing deprecation warnings that you can’t fix on
|
||||
* your own. However, please <em>also</em> notify your dependencies of the deprecations
|
||||
* so that they can get fixed as soon as possible!
|
||||
*
|
||||
* **Heads up!** If [[render]] or [[renderSync]] is called without
|
||||
* [[LegacyFileOptions.file]] or [[LegacyStringOptions.file]], <em>all</em>
|
||||
* stylesheets it loads will be considered dependencies. Since it doesn’t have
|
||||
* a path of its own, everything it loads is coming from a load path rather
|
||||
* than a relative import.
|
||||
* **Heads up!** If {@link render} or {@link renderSync} is called without
|
||||
* {@link LegacyFileOptions.file} or {@link LegacyStringOptions.file},
|
||||
* <em>all</em> stylesheets it loads will be considered dependencies. Since it
|
||||
* doesn’t have a path of its own, everything it loads is coming from a load
|
||||
* path rather than a relative import.
|
||||
*
|
||||
* @defaultValue `false`
|
||||
* @category Messages
|
||||
@ -499,10 +499,10 @@ export interface LegacySharedOptions<sync extends 'sync' | 'async'> {
|
||||
* An object to use to handle warnings and/or debug messages from Sass.
|
||||
*
|
||||
* By default, Sass emits warnings and debug messages to standard error, but
|
||||
* if [[Logger.warn]] or [[Logger.debug]] is set, this will invoke them
|
||||
* instead.
|
||||
* if {@link Logger.warn} or {@link Logger.debug} is set, this will invoke
|
||||
* them instead.
|
||||
*
|
||||
* The special value [[Logger.silent]] can be used to easily silence all
|
||||
* The special value {@link Logger.silent} can be used to easily silence all
|
||||
* messages.
|
||||
*
|
||||
* @category Messages
|
||||
@ -512,12 +512,12 @@ export interface LegacySharedOptions<sync extends 'sync' | 'async'> {
|
||||
}
|
||||
|
||||
/**
|
||||
* If [[file]] is passed without [[data]], Sass will load the stylesheet at
|
||||
* [[file]] and compile it to CSS.
|
||||
* If {@link file} is passed without {@link data}, Sass will load the stylesheet
|
||||
* at {@link file} and compile it to CSS.
|
||||
*
|
||||
* @typeParam sync - This lets the TypeScript checker verify that
|
||||
* [[LegacyAsyncImporter]]s and [[LegacyAsyncFunction]]s aren't passed to
|
||||
* [[renderSync]].
|
||||
* @typeParam sync - This lets the TypeScript checker verify that {@link
|
||||
* LegacyAsyncImporter}s and {@link LegacyAsyncFunction}s aren't passed to
|
||||
* {@link renderSync}.
|
||||
*/
|
||||
export interface LegacyFileOptions<sync extends 'sync' | 'async'>
|
||||
extends LegacySharedOptions<sync> {
|
||||
@ -548,8 +548,8 @@ export interface LegacyFileOptions<sync extends 'sync' | 'async'>
|
||||
file: string;
|
||||
|
||||
/**
|
||||
* See [[LegacyStringOptions.file]] for documentation of passing [[file]] along
|
||||
* with [[data]].
|
||||
* See {@link LegacyStringOptions.file} for documentation of passing {@link
|
||||
* file} along with {@link data}.
|
||||
*
|
||||
* @category Input
|
||||
*/
|
||||
@ -557,26 +557,26 @@ export interface LegacyFileOptions<sync extends 'sync' | 'async'>
|
||||
}
|
||||
|
||||
/**
|
||||
* If [[data]] is passed, Sass will use it as the contents of the stylesheet to
|
||||
* compile.
|
||||
* If {@link data} is passed, Sass will use it as the contents of the stylesheet
|
||||
* to compile.
|
||||
*
|
||||
* @typeParam sync - This lets the TypeScript checker verify that
|
||||
* [[LegacyAsyncImporter]]s and [[LegacyAsyncFunction]]s aren't passed to
|
||||
* [[renderSync]].
|
||||
* @typeParam sync - This lets the TypeScript checker verify that {@link
|
||||
* LegacyAsyncImporter}s and {@link LegacyAsyncFunction}s aren't passed to
|
||||
* {@link renderSync}.
|
||||
*
|
||||
* @category Legacy
|
||||
* @deprecated This only works with the legacy [[render]] and [[renderSync]]
|
||||
* APIs. Use [[StringOptions]] with [[compile]], [[compileString]],
|
||||
* [[compileAsync]], and [[compileStringAsync]] instead.
|
||||
* @deprecated This only works with the legacy {@link render} and {@link
|
||||
* renderSync} APIs. Use {@link StringOptions} with {@link compile}, {@link
|
||||
* compileString}, {@link compileAsync}, and {@link compileStringAsync} instead.
|
||||
*/
|
||||
export interface LegacyStringOptions<sync extends 'sync' | 'async'>
|
||||
extends LegacySharedOptions<sync> {
|
||||
/**
|
||||
* The contents of the stylesheet to compile. Unless [[file]] is passed as
|
||||
* The contents of the stylesheet to compile. Unless {@link file} is passed as
|
||||
* well, the stylesheet’s URL is set to `"stdin"`.
|
||||
*
|
||||
* By default, this stylesheet is parsed as SCSS. This can be controlled using
|
||||
* [[indentedSyntax]].
|
||||
* {@link indentedSyntax}.
|
||||
*
|
||||
* @example
|
||||
*
|
||||
@ -594,17 +594,17 @@ export interface LegacyStringOptions<sync extends 'sync' | 'async'>
|
||||
data: string;
|
||||
|
||||
/**
|
||||
* If `file` and [[data]] are both passed, `file` is used as the path of the
|
||||
* stylesheet for error reporting, but [[data]] is used as the contents of the
|
||||
* stylesheet. In this case, `file`’s extension is not used to determine the
|
||||
* syntax of the stylesheet.
|
||||
* If `file` and {@link data} are both passed, `file` is used as the path of
|
||||
* the stylesheet for error reporting, but {@link data} is used as the
|
||||
* contents of the stylesheet. In this case, `file`’s extension is not used to
|
||||
* determine the syntax of the stylesheet.
|
||||
*
|
||||
* @category Input
|
||||
*/
|
||||
file?: string;
|
||||
|
||||
/**
|
||||
* This flag controls whether [[data]] is parsed as the indented syntax or
|
||||
* This flag controls whether {@link data} is parsed as the indented syntax or
|
||||
* not.
|
||||
*
|
||||
* @example
|
||||
@ -625,17 +625,17 @@ export interface LegacyStringOptions<sync extends 'sync' | 'async'>
|
||||
}
|
||||
|
||||
/**
|
||||
* 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.
|
||||
* Options for {@link render} and {@link renderSync}. This can either be {@link
|
||||
* LegacyFileOptions} to load a file from disk, or {@link LegacyStringOptions}
|
||||
* to compile a string of Sass code.
|
||||
*
|
||||
* See [[LegacySharedOptions]] for options that are shared across both file and
|
||||
* string inputs.
|
||||
* See {@link LegacySharedOptions} for options that are shared across both file
|
||||
* and string inputs.
|
||||
*
|
||||
* @category Legacy
|
||||
* @deprecated This only works with the legacy [[render]] and [[renderSync]]
|
||||
* APIs. Use [[Options]] with [[compile]], [[compileString]], [[compileAsync]],
|
||||
* and [[compileStringAsync]] instead.
|
||||
* @deprecated This only works with the legacy {@link render} and {@link
|
||||
* renderSync} APIs. Use {@link Options} with {@link compile}, {@link
|
||||
* compileString}, {@link compileAsync}, and {@link compileStringAsync} instead.
|
||||
*/
|
||||
export type LegacyOptions<sync extends 'sync' | 'async'> =
|
||||
| LegacyFileOptions<sync>
|
||||
|
35
js-api-doc/legacy/plugin_this.d.ts
vendored
35
js-api-doc/legacy/plugin_this.d.ts
vendored
@ -1,32 +1,32 @@
|
||||
/**
|
||||
* The value of `this` in the context of a [[LegacyImporter]] or
|
||||
* [[LegacyFunction]] callback.
|
||||
* The value of `this` in the context of a {@link LegacyImporter} or {@link
|
||||
* LegacyFunction} callback.
|
||||
*
|
||||
* @category Legacy
|
||||
* @deprecated This is only used by the legacy [[render]] and [[renderSync]]
|
||||
* APIs. Use [[compile]], [[compileString]], [[compileAsync]], and
|
||||
* [[compileStringAsync]] instead.
|
||||
* @deprecated This is only used by the legacy {@link render} and {@link
|
||||
* renderSync} APIs. Use {@link compile}, {@link compileString}, {@link
|
||||
* compileAsync}, and {@link compileStringAsync} instead.
|
||||
*/
|
||||
export interface LegacyPluginThis {
|
||||
/**
|
||||
* A partial representation of the options passed to [[render]] or
|
||||
* [[renderSync]].
|
||||
* A partial representation of the options passed to {@link render} or {@link
|
||||
* renderSync}.
|
||||
*/
|
||||
options: {
|
||||
/** The same [[LegacyPluginThis]] instance that contains this object. */
|
||||
/** The same {@link LegacyPluginThis} instance that contains this object. */
|
||||
context: LegacyPluginThis;
|
||||
|
||||
/**
|
||||
* The value passed to [[LegacyFileOptions.file]] or
|
||||
* [[LegacyStringOptions.file]].
|
||||
* The value passed to {@link LegacyFileOptions.file} or {@link
|
||||
* LegacyStringOptions.file}.
|
||||
*/
|
||||
file?: string;
|
||||
|
||||
/** The value passed to [[LegacyStringOptions.data]]. */
|
||||
/** The value passed to {@link LegacyStringOptions.data}. */
|
||||
data?: string;
|
||||
|
||||
/**
|
||||
* The value passed to [[LegacySharedOptions.includePaths]] separated by
|
||||
* The value passed to {@link LegacySharedOptions.includePaths} separated by
|
||||
* `";"` on Windows or `":"` on other operating systems. This always
|
||||
* includes the current working directory as the first entry.
|
||||
*/
|
||||
@ -38,21 +38,22 @@ export interface LegacyPluginThis {
|
||||
/** Always the number 1. */
|
||||
style: 1;
|
||||
|
||||
/** 1 if [[LegacySharedOptions.indentType]] was `"tab"`, 0 otherwise. */
|
||||
/** 1 if {@link LegacySharedOptions.indentType} was `"tab"`, 0 otherwise. */
|
||||
indentType: 1 | 0;
|
||||
|
||||
/**
|
||||
* The value passed to [[LegacySharedOptions.indentWidth]], or `2` otherwise.
|
||||
* The value passed to {@link LegacySharedOptions.indentWidth}, or `2`
|
||||
* otherwise.
|
||||
*/
|
||||
indentWidth: number;
|
||||
|
||||
/**
|
||||
* The value passed to [[LegacySharedOptions.linefeed]], or `"\n"`
|
||||
* The value passed to {@link LegacySharedOptions.linefeed}, or `"\n"`
|
||||
* otherwise.
|
||||
*/
|
||||
linefeed: '\r' | '\r\n' | '\n' | '\n\r';
|
||||
|
||||
/** A partially-constructed [[LegacyResult]] object. */
|
||||
/** A partially-constructed {@link LegacyResult} object. */
|
||||
result: {
|
||||
/** Partial information about the compilation in progress. */
|
||||
stats: {
|
||||
@ -63,7 +64,7 @@ export interface LegacyPluginThis {
|
||||
start: number;
|
||||
|
||||
/**
|
||||
* [[LegacyFileOptions.file]] if it was passed, otherwise the string
|
||||
* {@link LegacyFileOptions.file} if it was passed, otherwise the string
|
||||
* `"data"`.
|
||||
*/
|
||||
entry: string;
|
||||
|
42
js-api-doc/legacy/render.d.ts
vendored
42
js-api-doc/legacy/render.d.ts
vendored
@ -2,13 +2,13 @@ import {LegacyException} from './exception';
|
||||
import {LegacyOptions} from './options';
|
||||
|
||||
/**
|
||||
* The object returned by [[render]] and [[renderSync]] after a successful
|
||||
* compilation.
|
||||
* The object returned by {@link render} and {@link renderSync} after a
|
||||
* successful compilation.
|
||||
*
|
||||
* @category Legacy
|
||||
* @deprecated This is only used by the legacy [[render]] and [[renderSync]]
|
||||
* APIs. Use [[compile]], [[compileString]], [[compileAsync]], and
|
||||
* [[compileStringAsync]] instead.
|
||||
* @deprecated This is only used by the legacy {@link render} and {@link
|
||||
* renderSync} APIs. Use {@link compile}, {@link compileString}, {@link
|
||||
* compileAsync}, and {@link compileStringAsync} instead.
|
||||
*/
|
||||
export interface LegacyResult {
|
||||
/**
|
||||
@ -32,14 +32,14 @@ export interface LegacyResult {
|
||||
*
|
||||
* This is `undefined` unless either
|
||||
*
|
||||
* * [[LegacySharedOptions.sourceMap]] is a string; or
|
||||
* * [[LegacySharedOptions.sourceMap]] is `true` and
|
||||
* [[LegacySharedOptions.outFile]] is set.
|
||||
* * {@link LegacySharedOptions.sourceMap} is a string; or
|
||||
* * {@link LegacySharedOptions.sourceMap} is `true` and
|
||||
* {@link LegacySharedOptions.outFile} is set.
|
||||
*
|
||||
* The source map uses absolute [`file:`
|
||||
* URLs](https://en.wikipedia.org/wiki/File_URI_scheme) to link to the Sass
|
||||
* source files, except if the source file comes from
|
||||
* [[LegacyStringOptions.data]] in which case it lists its URL as `"stdin"`.
|
||||
* source files, except if the source file comes from {@link
|
||||
* LegacyStringOptions.data} in which case it lists its URL as `"stdin"`.
|
||||
*
|
||||
* @example
|
||||
*
|
||||
@ -58,9 +58,9 @@ export interface LegacyResult {
|
||||
/** Additional information about the compilation. */
|
||||
stats: {
|
||||
/**
|
||||
* The absolute path of [[LegacyFileOptions.file]] or
|
||||
* [[LegacyStringOptions.file]], or `"data"` if [[LegacyStringOptions.file]]
|
||||
* wasn't set.
|
||||
* The absolute path of {@link LegacyFileOptions.file} or {@link
|
||||
* LegacyStringOptions.file}, or `"data"` if {@link
|
||||
* LegacyStringOptions.file} wasn't set.
|
||||
*/
|
||||
entry: string;
|
||||
|
||||
@ -84,8 +84,8 @@ export interface LegacyResult {
|
||||
|
||||
/**
|
||||
* An array of the absolute paths of all Sass files loaded during
|
||||
* compilation. If a stylesheet was loaded from a [[LegacyImporter]] that
|
||||
* returned the stylesheet’s contents, the raw string of the `@use` or
|
||||
* compilation. If a stylesheet was loaded from a {@link LegacyImporter}
|
||||
* that returned the stylesheet’s contents, the raw string of the `@use` or
|
||||
* `@import` that loaded that stylesheet included in this array.
|
||||
*/
|
||||
includedFiles: string[];
|
||||
@ -106,18 +106,18 @@ export interface LegacyResult {
|
||||
* ```
|
||||
*
|
||||
* @category Legacy
|
||||
* @deprecated Use [[compile]] or [[compileString]] instead.
|
||||
* @deprecated Use {@link compile} or {@link compileString} instead.
|
||||
*/
|
||||
export function renderSync(options: LegacyOptions<'sync'>): LegacyResult;
|
||||
|
||||
/**
|
||||
|
||||
* This function asynchronously compiles a Sass file to CSS, and calls
|
||||
* `callback` with a [[LegacyResult]] if compilation succeeds or
|
||||
* [[LegacyException]] if it fails.
|
||||
* `callback` with a {@link LegacyResult} if compilation succeeds or {@link
|
||||
* LegacyException} if it fails.
|
||||
*
|
||||
* **Heads up!** When using Dart Sass, **[[renderSync]] is almost twice as fast
|
||||
* as [[render]]** by default, due to the overhead of making the entire
|
||||
* **Heads up!** When using Dart Sass, **{@link renderSync} is almost twice as
|
||||
* fast as {@link render}** by default, due to the overhead of making the entire
|
||||
* evaluation process asynchronous.
|
||||
*
|
||||
* ```js
|
||||
@ -131,7 +131,7 @@ export function renderSync(options: LegacyOptions<'sync'>): LegacyResult;
|
||||
* ```
|
||||
*
|
||||
* @category Legacy
|
||||
* @deprecated Use [[compileAsync]] or [[compileStringAsync]] instead.
|
||||
* @deprecated Use {@link compileAsync} or {@link compileStringAsync} instead.
|
||||
*/
|
||||
export function render(
|
||||
options: LegacyOptions<'async'>,
|
||||
|
8
js-api-doc/logger/index.d.ts
vendored
8
js-api-doc/logger/index.d.ts
vendored
@ -4,8 +4,8 @@ export {SourceLocation} from './source_location';
|
||||
export {SourceSpan} from './source_span';
|
||||
|
||||
/**
|
||||
* An object that can be passed to [[LegacySharedOptions.logger]] to control how
|
||||
* Sass emits warnings and debug messages.
|
||||
* An object that can be passed to {@link LegacySharedOptions.logger} to control
|
||||
* how Sass emits warnings and debug messages.
|
||||
*
|
||||
* @example
|
||||
*
|
||||
@ -70,14 +70,14 @@ export interface Logger {
|
||||
}
|
||||
|
||||
/**
|
||||
* A namespace for built-in [[Logger]]s.
|
||||
* A namespace for built-in {@link Logger}s.
|
||||
*
|
||||
* @category Logger
|
||||
* @compatibility dart: "1.43.0", node: false
|
||||
*/
|
||||
export namespace Logger {
|
||||
/**
|
||||
* A [[Logger]] that silently ignores all warnings and debug messages.
|
||||
* A {@link Logger} that silently ignores all warnings and debug messages.
|
||||
*
|
||||
* @example
|
||||
*
|
||||
|
4
js-api-doc/logger/source_location.d.ts
vendored
4
js-api-doc/logger/source_location.d.ts
vendored
@ -1,8 +1,8 @@
|
||||
/**
|
||||
* A specific location within a source file.
|
||||
*
|
||||
* This is always associated with a [[SourceSpan]] which indicates *which* file
|
||||
* it refers to.
|
||||
* This is always associated with a {@link SourceSpan} which indicates *which*
|
||||
* file it refers to.
|
||||
*
|
||||
* @category Logger
|
||||
*/
|
||||
|
6
js-api-doc/logger/source_span.d.ts
vendored
6
js-api-doc/logger/source_span.d.ts
vendored
@ -12,9 +12,9 @@ export interface SourceSpan {
|
||||
/**
|
||||
* The end of this span, exclusive.
|
||||
*
|
||||
* If [[start]] and [[end]] refer to the same location, the span has zero
|
||||
* length and refers to the point immediately after [[start]] and before the
|
||||
* next character.
|
||||
* If {@link start} and {@link end} refer to the same location, the span has
|
||||
* zero length and refers to the point immediately after {@link start} and
|
||||
* before the next character.
|
||||
*/
|
||||
end: SourceLocation;
|
||||
|
||||
|
144
js-api-doc/options.d.ts
vendored
144
js-api-doc/options.d.ts
vendored
@ -32,7 +32,7 @@ export type OutputStyle = 'expanded' | 'compressed';
|
||||
|
||||
/**
|
||||
* A callback that implements a custom Sass function. This can be passed to
|
||||
* [[Options.functions]].
|
||||
* {@link Options.functions}.
|
||||
*
|
||||
* ```js
|
||||
* const result = sass.compile('style.scss', {
|
||||
@ -49,21 +49,21 @@ export type OutputStyle = 'expanded' | 'compressed';
|
||||
* ```
|
||||
*
|
||||
* @typeParam sync - A `CustomFunction<'sync'>` must return synchronously, but
|
||||
* in return it can be passed to [[compile]] and [[compileString]] in addition
|
||||
* to [[compileAsync]] and [[compileStringAsync]].
|
||||
* in return it can be passed to {@link compile} and {@link compileString} in
|
||||
* addition to {@link compileAsync} and {@link compileStringAsync}.
|
||||
*
|
||||
* A `CustomFunction<'async'>` may either return synchronously or
|
||||
* asynchronously, but it can only be used with [[compileAsync]] and
|
||||
* [[compileStringAsync]].
|
||||
* asynchronously, but it can only be used with {@link compileAsync} and {@link
|
||||
* compileStringAsync}.
|
||||
*
|
||||
* @param args - An array of arguments passed by the function's caller. If the
|
||||
* function takes [arbitrary
|
||||
* arguments](https://sass-lang.com/documentation/at-rules/function#taking-arbitrary-arguments),
|
||||
* the last element will be a [[SassArgumentList]].
|
||||
* the last element will be a {@link SassArgumentList}.
|
||||
*
|
||||
* @returns The function's result. This may be in the form of a `Promise`, but
|
||||
* if it is the function may only be passed to [[compileAsync]] and
|
||||
* [[compileStringAsync]], not [[compile]] or [[compileString]].
|
||||
* if it is the function may only be passed to {@link compileAsync} and {@link
|
||||
* compileStringAsync}, not {@link compile} or {@link compileString}.
|
||||
*
|
||||
* @throws any - This function may throw an error, which the Sass compiler will
|
||||
* treat as the function call failing. If the exception object has a `message`
|
||||
@ -78,12 +78,12 @@ export type CustomFunction<sync extends 'sync' | 'async'> = (
|
||||
) => PromiseOr<Value, sync>;
|
||||
|
||||
/**
|
||||
* Options that can be passed to [[compile]], [[compileAsync]],
|
||||
* [[compileString]], or [[compileStringAsync]].
|
||||
* Options that can be passed to {@link compile}, {@link compileAsync}, {@link
|
||||
* compileString}, or {@link compileStringAsync}.
|
||||
*
|
||||
* @typeParam sync - This lets the TypeScript checker verify that asynchronous
|
||||
* [[Importer]]s, [[FileImporter]]s, and [[CustomFunction]]s aren't passed to
|
||||
* [[compile]] or [[compileString]].
|
||||
* {@link Importer}s, {@link FileImporter}s, and {@link CustomFunction}s aren't
|
||||
* passed to {@link compile} or {@link compileString}.
|
||||
*
|
||||
* @category Options
|
||||
*/
|
||||
@ -127,7 +127,7 @@ export interface Options<sync extends 'sync' | 'async'> {
|
||||
* This option takes an object whose keys are Sass function signatures like
|
||||
* you'd write for the [`@function
|
||||
* rule`](https://sass-lang.com/documentation/at-rules/function) and whose
|
||||
* values are [[CustomFunction]]s.
|
||||
* values are {@link CustomFunction}s.
|
||||
*
|
||||
* Functions are passed JavaScript representations of [Sass value
|
||||
* types](https://sass-lang.com/documentation/js-api#value-types), and must
|
||||
@ -137,18 +137,18 @@ export interface Options<sync extends 'sync' | 'async'> {
|
||||
* and as close to the standards set by Sass's core functions as possible. Some
|
||||
* good guidelines to follow include:
|
||||
*
|
||||
* * Use `Value.assert*` methods, like [[Value.assertString]], to cast untyped
|
||||
* `Value` objects to more specific types. For values that were passed
|
||||
* directly as arguments, pass in the argument name as well. This ensures
|
||||
* that the user gets good error messages when they pass in the wrong type
|
||||
* to your function.
|
||||
* * Use `Value.assert*` methods, like {@link Value.assertString}, to cast
|
||||
* untyped `Value` objects to more specific types. For values that were
|
||||
* passed directly as arguments, pass in the argument name as well. This
|
||||
* ensures that the user gets good error messages when they pass in the
|
||||
* wrong type to your function.
|
||||
*
|
||||
* * Individual classes may have more specific `assert*` methods, like
|
||||
* [[SassNumber.assertInt]], which should be used when possible.
|
||||
* * Individual classes may have more specific `assert*` methods, like {@link
|
||||
* SassNumber.assertInt}, which should be used when possible.
|
||||
*
|
||||
* * In Sass, every value counts as a list. Rather than trying to detect the
|
||||
* [[SassList]] type, you should use [[Value.asList]] to treat all values as
|
||||
* lists.
|
||||
* {@link SassList} type, you should use {@link Value.asList} to treat all
|
||||
* values as lists.
|
||||
*
|
||||
* * When manipulating values like lists, strings, and numbers that have
|
||||
* metadata (comma versus space separated, bracketed versus unbracketed,
|
||||
@ -160,9 +160,8 @@ export interface Options<sync extends 'sync' | 'async'> {
|
||||
*
|
||||
* * In Sass, lists and strings use one-based indexing and use negative
|
||||
* indices to index from the end of value. Functions should follow these
|
||||
* conventions. [[Value.sassIndexToListIndex]] and
|
||||
* [[SassString.sassIndexToStringIndex]] can be used to do this
|
||||
* automatically.
|
||||
* conventions. {@link Value.sassIndexToListIndex} and {@link
|
||||
* SassString.sassIndexToStringIndex} can be used to do this automatically.
|
||||
*
|
||||
* * String indexes in Sass refer to Unicode code points while JavaScript
|
||||
* string indices refer to UTF-16 code units. For example, the character
|
||||
@ -170,9 +169,9 @@ export interface Options<sync extends 'sync' | 'async'> {
|
||||
* is represented in UTF-16 as two code units (`0xD83D` and `0xDE0A`). So in
|
||||
* JavaScript, `"a😊b".charCodeAt(1)` returns `0xD83D`, whereas in Sass
|
||||
* `str-slice("a😊b", 1, 1)` returns `"😊"`. Functions should follow Sass's
|
||||
* convention. [[SassString.sassIndexToStringIndex]] can be used to do this
|
||||
* automatically, and the [[SassString.sassLength]] getter can be used to
|
||||
* access a string's length in code points.
|
||||
* convention. {@link SassString.sassIndexToStringIndex} can be used to do
|
||||
* this automatically, and the {@link SassString.sassLength} getter can be
|
||||
* used to access a string's length in code points.
|
||||
*
|
||||
* @example
|
||||
*
|
||||
@ -209,9 +208,10 @@ export interface Options<sync extends 'sync' | 'async'> {
|
||||
* - The importer that was used to load the current stylesheet, with the
|
||||
* loaded URL resolved relative to the current stylesheet's canonical URL.
|
||||
*
|
||||
* - Each [[Importer]] or [[FileImporter]] in [[importers]], in order.
|
||||
* - Each {@link Importer} or {@link FileImporter} in {@link importers}, in
|
||||
* order.
|
||||
*
|
||||
* - Each load path in [[loadPaths]], in order.
|
||||
* - Each load path in {@link loadPaths}, in order.
|
||||
*
|
||||
* If none of these return a Sass file, the load fails and Sass throws an
|
||||
* error.
|
||||
@ -225,7 +225,7 @@ export interface Options<sync extends 'sync' | 'async'> {
|
||||
* [`@use`](https://sass-lang.com/documentation/at-rules/use) and
|
||||
* [`@import`](https://sass-lang.com/documentation/at-rules/import).
|
||||
*
|
||||
* A load path `loadPath` is equivalent to the following [[FileImporter]]:
|
||||
* A load path `loadPath` is equivalent to the following {@link FileImporter}:
|
||||
*
|
||||
* ```js
|
||||
* {
|
||||
@ -245,10 +245,10 @@ export interface Options<sync extends 'sync' | 'async'> {
|
||||
* An object to use to handle warnings and/or debug messages from Sass.
|
||||
*
|
||||
* By default, Sass emits warnings and debug messages to standard error, but
|
||||
* if [[Logger.warn]] or [[Logger.debug]] is set, this will invoke them
|
||||
* instead.
|
||||
* if {@link Logger.warn} or {@link Logger.debug} is set, this will invoke
|
||||
* them instead.
|
||||
*
|
||||
* The special value [[Logger.silent]] can be used to easily silence all
|
||||
* The special value {@link Logger.silent} can be used to easily silence all
|
||||
* messages.
|
||||
*
|
||||
* @category Messages
|
||||
@ -258,18 +258,18 @@ export interface Options<sync extends 'sync' | 'async'> {
|
||||
/**
|
||||
* If this option is set to `true`, Sass won’t print warnings that are caused
|
||||
* by dependencies. A “dependency” is defined as any file that’s loaded
|
||||
* through [[loadPaths]] or [[importer]]. Stylesheets that are imported
|
||||
* relative to the entrypoint are not considered dependencies.
|
||||
* through {@link loadPaths} or {@link importers}. Stylesheets that are
|
||||
* imported relative to the entrypoint are not considered dependencies.
|
||||
*
|
||||
* This is useful for silencing deprecation warnings that you can’t fix on
|
||||
* your own. However, please <em>also</em> notify your dependencies of the deprecations
|
||||
* so that they can get fixed as soon as possible!
|
||||
*
|
||||
* **Heads up!** If [[compileString]] or [[compileStringAsync]] is called
|
||||
* without [[StringWithoutImporter.url]], <em>all</em> stylesheets it loads
|
||||
* will be considered dependencies. Since it doesn’t have a path of its own,
|
||||
* everything it loads is coming from a load path rather than a relative
|
||||
* import.
|
||||
* **Heads up!** If {@link compileString} or {@link compileStringAsync} is
|
||||
* called without {@link StringOptionsWithoutImporter.url}, <em>all</em>
|
||||
* stylesheets it loads will be considered dependencies. Since it doesn’t have
|
||||
* a path of its own, everything it loads is coming from a load path rather
|
||||
* than a relative import.
|
||||
*
|
||||
* @defaultValue `false`
|
||||
* @category Messages
|
||||
@ -278,7 +278,7 @@ export interface Options<sync extends 'sync' | 'async'> {
|
||||
|
||||
/**
|
||||
* Whether or not Sass should generate a source map. If it does, the source
|
||||
* map will be available as [[CompileResult.sourceMap]].
|
||||
* map will be available as {@link CompileResult.sourceMap}.
|
||||
*
|
||||
* **Heads up!** Sass doesn't automatically add a `sourceMappingURL` comment
|
||||
* to the generated CSS. It's up to callers to do that, since callers have
|
||||
@ -293,7 +293,7 @@ export interface Options<sync extends 'sync' | 'async'> {
|
||||
/**
|
||||
* Whether Sass should include the sources in the generated source map.
|
||||
*
|
||||
* This option has no effect if [[sourceMap]] is `false`.
|
||||
* This option has no effect if {@link sourceMap} is `false`.
|
||||
*
|
||||
* @defaultValue `false`
|
||||
* @category Output
|
||||
@ -301,7 +301,7 @@ export interface Options<sync extends 'sync' | 'async'> {
|
||||
sourceMapIncludeSources?: boolean;
|
||||
|
||||
/**
|
||||
* The [[OutputStyle]] of the compiled CSS.
|
||||
* The {@link OutputStyle} of the compiled CSS.
|
||||
*
|
||||
* @example
|
||||
*
|
||||
@ -345,22 +345,23 @@ export interface Options<sync extends 'sync' | 'async'> {
|
||||
}
|
||||
|
||||
/**
|
||||
* Options that can be passed to [[compileString]] or [[compileStringAsync]].
|
||||
* Options that can be passed to {@link compileString} or {@link
|
||||
* compileStringAsync}.
|
||||
*
|
||||
* If the [[StringOptionsWithImporter.importer]] field isn't passed, the
|
||||
* If the {@link StringOptionsWithImporter.importer} field isn't passed, the
|
||||
* entrypoint file can load files relative to itself if a `file://` URL is
|
||||
* passed to the [[url]] field.
|
||||
* passed to the {@link url} field.
|
||||
*
|
||||
* @typeParam sync - This lets the TypeScript checker verify that asynchronous
|
||||
* [[Importer]]s, [[FileImporter]]s, and [[CustomFunction]]s aren't passed to
|
||||
* [[compile]] or [[compileString]].
|
||||
* {@link Importer}s, {@link FileImporter}s, and {@link CustomFunction}s aren't
|
||||
* passed to {@link compile} or {@link compileString}.
|
||||
*
|
||||
* @category Options
|
||||
*/
|
||||
export interface StringOptionsWithoutImporter<sync extends 'sync' | 'async'>
|
||||
extends Options<sync> {
|
||||
/**
|
||||
* The [[Syntax]] to use to parse the entrypoint stylesheet.
|
||||
* The {@link Syntax} to use to parse the entrypoint stylesheet.
|
||||
*
|
||||
* @default `'scss'`
|
||||
*
|
||||
@ -371,9 +372,10 @@ export interface StringOptionsWithoutImporter<sync extends 'sync' | 'async'>
|
||||
/**
|
||||
* The canonical URL of the entrypoint stylesheet.
|
||||
*
|
||||
* A relative load's URL is first resolved relative to [[url]], then resolved
|
||||
* to a file on disk if it's a `file://` URL. If it can't be resolved to a
|
||||
* file on disk, it's then passed to [[importers]] and [[loadPaths]].
|
||||
* A relative load's URL is first resolved relative to {@link url}, then
|
||||
* resolved to a file on disk if it's a `file://` URL. If it can't be resolved
|
||||
* to a file on disk, it's then passed to {@link importers} and {@link
|
||||
* loadPaths}.
|
||||
*
|
||||
* @category Input
|
||||
*/
|
||||
@ -381,15 +383,16 @@ export interface StringOptionsWithoutImporter<sync extends 'sync' | 'async'>
|
||||
}
|
||||
|
||||
/**
|
||||
* Options that can be passed to [[compileString]] or [[compileStringAsync]].
|
||||
* Options that can be passed to {@link compileString} or {@link
|
||||
* compileStringAsync}.
|
||||
*
|
||||
* If the [[StringOptionsWithImporter.importer]] field is passed, the entrypoint
|
||||
* file uses it to load files relative to itself and the [[url]] field is
|
||||
* mandatory.
|
||||
* If the {@link StringOptionsWithImporter.importer} field is passed, the
|
||||
* entrypoint file uses it to load files relative to itself and the {@link url}
|
||||
* field is mandatory.
|
||||
*
|
||||
* @typeParam sync - This lets the TypeScript checker verify that asynchronous
|
||||
* [[Importer]]s, [[FileImporter]]s, and [[CustomFunction]]s aren't passed to
|
||||
* [[compile]] or [[compileString]].
|
||||
* {@link Importer}s, {@link FileImporter}s, and {@link CustomFunction}s aren't
|
||||
* passed to {@link compile} or {@link compileString}.
|
||||
*
|
||||
* @category Options
|
||||
*/
|
||||
@ -399,9 +402,9 @@ export interface StringOptionsWithImporter<sync extends 'sync' | 'async'>
|
||||
* The importer to use to handle loads that are relative to the entrypoint
|
||||
* stylesheet.
|
||||
*
|
||||
* A relative load's URL is first resolved relative to [[url]], then passed to
|
||||
* [[importer]]. If the importer doesn't recognize it, it's then passed to
|
||||
* [[importers]] and [[loadPaths]].
|
||||
* A relative load's URL is first resolved relative to {@link url}, then
|
||||
* passed to {@link importer}. If the importer doesn't recognize it, it's then
|
||||
* passed to {@link importers} and {@link loadPaths}.
|
||||
*
|
||||
* @category Input
|
||||
*/
|
||||
@ -409,8 +412,8 @@ export interface StringOptionsWithImporter<sync extends 'sync' | 'async'>
|
||||
|
||||
/**
|
||||
* The canonical URL of the entrypoint stylesheet. If this is passed along
|
||||
* with [[importer]], it's used to resolve relative loads in the entrypoint
|
||||
* stylesheet.
|
||||
* with {@link importer}, it's used to resolve relative loads in the
|
||||
* entrypoint stylesheet.
|
||||
*
|
||||
* @category Input
|
||||
*/
|
||||
@ -418,15 +421,16 @@ export interface StringOptionsWithImporter<sync extends 'sync' | 'async'>
|
||||
}
|
||||
|
||||
/**
|
||||
* Options that can be passed to [[compileString]] or [[compileStringAsync]].
|
||||
* Options that can be passed to {@link compileString} or {@link
|
||||
* compileStringAsync}.
|
||||
*
|
||||
* This is a [[StringOptionsWithImporter]] if it has a
|
||||
* [[StringOptionsWithImporter.importer]] field, and a
|
||||
* [[StringOptionsWithoutImporter]] otherwise.
|
||||
* This is a {@link StringOptionsWithImporter} if it has a {@link
|
||||
* StringOptionsWithImporter.importer} field, and a {@link
|
||||
* StringOptionsWithoutImporter} otherwise.
|
||||
*
|
||||
* @typeParam sync - This lets the TypeScript checker verify that asynchronous
|
||||
* [[Importer]]s, [[FileImporter]]s, and [[CustomFunction]]s aren't passed to
|
||||
* [[compile]] or [[compileString]].
|
||||
* {@link Importer}s, {@link FileImporter}s, and {@link CustomFunction}s aren't
|
||||
* passed to {@link compile} or {@link compileString}.
|
||||
*
|
||||
* @category Options
|
||||
*/
|
||||
|
8
js-api-doc/util/promise_or.d.ts
vendored
8
js-api-doc/util/promise_or.d.ts
vendored
@ -2,10 +2,10 @@
|
||||
* A utility type for choosing between synchronous and asynchronous return
|
||||
* values.
|
||||
*
|
||||
* This is used as the return value for plugins like [[CustomFunction]],
|
||||
* [[Importer]], and [[FileImporter]] so that TypeScript enforces that
|
||||
* asynchronous plugins are only passed to [[compileAsync]] and
|
||||
* [[compileStringAsync]], not [[compile]] or [[compileString]].
|
||||
* This is used as the return value for plugins like {@link CustomFunction},
|
||||
* {@link Importer}, and {@link FileImporter} so that TypeScript enforces that
|
||||
* asynchronous plugins are only passed to {@link compileAsync} and {@link
|
||||
* compileStringAsync}, not {@link compile} or {@link compileString}.
|
||||
*
|
||||
* @typeParam sync - If this is `'sync'`, this can only be a `T`. If it's
|
||||
* `'async'`, this can be either a `T` or a `Promise<T>`.
|
||||
|
12
js-api-doc/value/argument_list.d.ts
vendored
12
js-api-doc/value/argument_list.d.ts
vendored
@ -8,8 +8,8 @@ import {SassList, ListSeparator} from './list';
|
||||
* type](https://sass-lang.com/documentation/values/lists#argument-lists).
|
||||
*
|
||||
* An argument list comes from a rest argument. It's distinct from a normal
|
||||
* [[SassList]] in that it may contain a keyword map as well as the positional
|
||||
* arguments.
|
||||
* {@link SassList} in that it may contain a keyword map as well as the
|
||||
* positional arguments.
|
||||
*
|
||||
* @category Custom Function
|
||||
*/
|
||||
@ -19,13 +19,13 @@ export class SassArgumentList extends SassList {
|
||||
*
|
||||
* @param contents - The positional arguments that make up the primary
|
||||
* contents of the list. This may be either a plain JavaScript array or an
|
||||
* immutable [[List]] from the [`immutable`
|
||||
* immutable {@link List} from the [`immutable`
|
||||
* package](https://immutable-js.com/).
|
||||
*
|
||||
* @param keywords - The keyword arguments attached to this argument list,
|
||||
* whose names should exclude `$`. This can be either a plain JavaScript
|
||||
* object with argument names as fields, or an immutable [[OrderedMap]] from
|
||||
* the [`immutable` package](https://immutable-js.com/)
|
||||
* object with argument names as fields, or an immutable {@link OrderedMap}
|
||||
* from the [`immutable` package](https://immutable-js.com/)
|
||||
*
|
||||
* @param separator - The separator for this list. Defaults to `','`.
|
||||
*/
|
||||
@ -40,7 +40,7 @@ export class SassArgumentList extends SassList {
|
||||
*
|
||||
* The argument names don't include `$`.
|
||||
*
|
||||
* @returns An immutable [[OrderedMap]] from the [`immutable`
|
||||
* @returns An immutable {@link OrderedMap} from the [`immutable`
|
||||
* package](https://immutable-js.com/).
|
||||
*/
|
||||
get keywords(): OrderedMap<string, Value>;
|
||||
|
2
js-api-doc/value/function.d.ts
vendored
2
js-api-doc/value/function.d.ts
vendored
@ -16,7 +16,7 @@ export class SassFunction extends Value {
|
||||
* @param signature - The function signature, like you'd write for the
|
||||
* [`@function rule`](https://sass-lang.com/documentation/at-rules/function).
|
||||
* @param callback - The callback that's invoked when this function is called,
|
||||
* just like for a [[CustomFunction]].
|
||||
* just like for a {@link CustomFunction}.
|
||||
*/
|
||||
constructor(signature: string, callback: (args: Value[]) => Value);
|
||||
}
|
||||
|
26
js-api-doc/value/index.d.ts
vendored
26
js-api-doc/value/index.d.ts
vendored
@ -27,8 +27,8 @@ export const sassNull: Value;
|
||||
/**
|
||||
* The abstract base class of Sass's value types.
|
||||
*
|
||||
* This is passed to and returned by [[CustomFunction]]s, which are passed into
|
||||
* the Sass implementation using [[Options.functions]].
|
||||
* This is passed to and returned by {@link CustomFunction}s, which are passed
|
||||
* into the Sass implementation using {@link Options.functions}.
|
||||
*
|
||||
* @category Custom Function
|
||||
*/
|
||||
@ -41,7 +41,7 @@ export abstract class Value implements ValueObject {
|
||||
* All SassScript values can be used as lists. Maps count as lists of pairs,
|
||||
* and all other values count as single-value lists.
|
||||
*
|
||||
* @returns An immutable [[List]] from the [`immutable`
|
||||
* @returns An immutable {@link List} from the [`immutable`
|
||||
* package](https://immutable-js.com/).
|
||||
*/
|
||||
get asList(): List<Value>;
|
||||
@ -61,7 +61,7 @@ export abstract class Value implements ValueObject {
|
||||
get isTruthy(): boolean;
|
||||
|
||||
/**
|
||||
* Returns JavaScript's `null` value if this is [[sassNull]], and returns
|
||||
* Returns JavaScript's `null` value if this is {@link sassNull}, and returns
|
||||
* `this` otherwise.
|
||||
*/
|
||||
get realNull(): null | Value;
|
||||
@ -76,7 +76,7 @@ export abstract class Value implements ValueObject {
|
||||
|
||||
/**
|
||||
* Converts `sassIndex` into a JavaScript-style index into the list returned
|
||||
* by [[asList]].
|
||||
* by {@link asList}.
|
||||
*
|
||||
* Sass indexes are one-based, while JavaScript indexes are zero-based. Sass
|
||||
* indexes may also be negative in order to index from the end of the list.
|
||||
@ -85,7 +85,7 @@ export abstract class Value implements ValueObject {
|
||||
* @param name - The name of the function argument `sassIndex` came from
|
||||
* (without the `$`) if it came from an argument. Used for error reporting.
|
||||
* @throws `Error` If `sassIndex` isn't a number, if that number isn't an
|
||||
* integer, or if that integer isn't a valid index for [[asList]].
|
||||
* integer, or if that integer isn't a valid index for {@link asList}.
|
||||
*/
|
||||
sassIndexToListIndex(sassIndex: Value, name?: string): number;
|
||||
|
||||
@ -106,9 +106,9 @@ export abstract class Value implements ValueObject {
|
||||
get(index: number): Value | undefined;
|
||||
|
||||
/**
|
||||
* Throws if `this` isn't a [[SassBoolean]].
|
||||
* Throws if `this` isn't a {@link SassBoolean}.
|
||||
*
|
||||
* **Heads up!** Functions should generally use [[isTruthy]] rather than
|
||||
* **Heads up!** Functions should generally use {@link isTruthy} rather than
|
||||
* requiring a literal boolean.
|
||||
*
|
||||
* @param name - The name of the function argument `this` came from (without
|
||||
@ -117,7 +117,7 @@ export abstract class Value implements ValueObject {
|
||||
assertBoolean(name?: string): SassBoolean;
|
||||
|
||||
/**
|
||||
* Throws if `this` isn't a [[SassColor]].
|
||||
* Throws if `this` isn't a {@link SassColor}.
|
||||
*
|
||||
* @param name - The name of the function argument `this` came from (without
|
||||
* the `$`) if it came from an argument. Used for error reporting.
|
||||
@ -125,7 +125,7 @@ export abstract class Value implements ValueObject {
|
||||
assertColor(name?: string): SassColor;
|
||||
|
||||
/**
|
||||
* Throws if `this` isn't a [[SassFunction]].
|
||||
* Throws if `this` isn't a {@link SassFunction}.
|
||||
*
|
||||
* @param name - The name of the function argument `this` came from (without
|
||||
* the `$`) if it came from an argument. Used for error reporting.
|
||||
@ -133,7 +133,7 @@ export abstract class Value implements ValueObject {
|
||||
assertFunction(name?: string): SassFunction;
|
||||
|
||||
/**
|
||||
* Throws if `this` isn't a [[SassMap]].
|
||||
* Throws if `this` isn't a {@link SassMap}.
|
||||
*
|
||||
* @param name - The name of the function argument `this` came from (without
|
||||
* the `$`) if it came from an argument. Used for error reporting.
|
||||
@ -141,7 +141,7 @@ export abstract class Value implements ValueObject {
|
||||
assertMap(name?: string): SassMap;
|
||||
|
||||
/**
|
||||
* Throws if `this` isn't a [[SassNumber]].
|
||||
* Throws if `this` isn't a {@link SassNumber}.
|
||||
*
|
||||
* @param name - The name of the function argument `this` came from (without
|
||||
* the `$`) if it came from an argument. Used for error reporting.
|
||||
@ -149,7 +149,7 @@ export abstract class Value implements ValueObject {
|
||||
assertNumber(name?: string): SassNumber;
|
||||
|
||||
/**
|
||||
* Throws if `this` isn't a [[SassString]].
|
||||
* Throws if `this` isn't a {@link SassString}.
|
||||
*
|
||||
* @param name - The name of the function argument `this` came from (without
|
||||
* the `$`) if it came from an argument. Used for error reporting.
|
||||
|
2
js-api-doc/value/list.d.ts
vendored
2
js-api-doc/value/list.d.ts
vendored
@ -21,7 +21,7 @@ export class SassList extends Value {
|
||||
* Creates a new list.
|
||||
*
|
||||
* @param contents - The contents of the list. This may be either a plain
|
||||
* JavaScript array or an immutable [[List]] from the [`immutable`
|
||||
* JavaScript array or an immutable {@link List} from the [`immutable`
|
||||
* package](https://immutable-js.com/).
|
||||
*
|
||||
* @param options.separator - The separator to use between elements of this
|
||||
|
6
js-api-doc/value/map.d.ts
vendored
6
js-api-doc/value/map.d.ts
vendored
@ -13,13 +13,13 @@ export class SassMap extends Value {
|
||||
* Creates a new map.
|
||||
*
|
||||
* @param contents - The contents of the map. This is an immutable
|
||||
* [[OrderedMap]] from the [`immutable` package](https://immutable-js.com/).
|
||||
* `OrderedMap` from the [`immutable` package](https://immutable-js.com/).
|
||||
* Defaults to an empty map.
|
||||
*/
|
||||
constructor(contents?: OrderedMap<Value, Value>);
|
||||
|
||||
/**
|
||||
* Returns the contents of this map as an immutable [[OrderedMap]] from the
|
||||
* Returns the contents of this map as an immutable {@link OrderedMap} from the
|
||||
* [`immutable` package](https://immutable-js.com/).
|
||||
*/
|
||||
get contents(): OrderedMap<Value, Value>;
|
||||
@ -33,7 +33,7 @@ export class SassMap extends Value {
|
||||
*/
|
||||
get(key: Value): Value | undefined;
|
||||
|
||||
/** Inherited from [[Value.get]]. */
|
||||
/** Inherited from {@link Value.get}. */
|
||||
get(index: number): SassList | undefined;
|
||||
|
||||
/** @hidden */
|
||||
|
98
js-api-doc/value/number.d.ts
vendored
98
js-api-doc/value/number.d.ts
vendored
@ -21,12 +21,12 @@ export class SassNumber extends Value {
|
||||
*
|
||||
* @param unit.numeratorUnits - If passed, these are the numerator units to
|
||||
* use for the number. This may be either a plain JavaScript array or an
|
||||
* immutable [[List]] from the [`immutable`
|
||||
* immutable {@link List} from the [`immutable`
|
||||
* package](https://immutable-js.com/).
|
||||
*
|
||||
* @param unit.denominatorUnits - If passed, these are the denominator units
|
||||
* to use for the number. This may be either a plain JavaScript array or an
|
||||
* immutable [[List]] from the [`immutable`
|
||||
* immutable {@link List} from the [`immutable`
|
||||
* package](https://immutable-js.com/).
|
||||
*/
|
||||
constructor(
|
||||
@ -42,23 +42,23 @@ export class SassNumber extends Value {
|
||||
/** This number's numeric value. */
|
||||
get value(): number;
|
||||
|
||||
/** Whether [[value]] is an integer according to Sass's equality logic. */
|
||||
/** Whether {@link value} is an integer according to Sass's equality logic. */
|
||||
get isInt(): boolean;
|
||||
|
||||
/**
|
||||
* If [[value]] is an integer according to [[isInt]], returns [[value]]
|
||||
* rounded to that integer. If it's not an integer, returns `null`.
|
||||
* If {@link value} is an integer according to {@link isInt}, returns {@link
|
||||
* value} rounded to that integer. If it's not an integer, returns `null`.
|
||||
*/
|
||||
get asInt(): number | null;
|
||||
|
||||
/**
|
||||
* This number's numerator units as an immutable [[List]] from the
|
||||
* This number's numerator units as an immutable {@link List} from the
|
||||
* [`immutable` package](https://immutable-js.com/).
|
||||
*/
|
||||
get numeratorUnits(): List<string>;
|
||||
|
||||
/**
|
||||
* This number's denominator units as an immutable [[List]] from the
|
||||
* This number's denominator units as an immutable {@link List} from the
|
||||
* [`immutable` package](https://immutable-js.com/).
|
||||
*/
|
||||
get denominatorUnits(): List<string>;
|
||||
@ -67,8 +67,8 @@ export class SassNumber extends Value {
|
||||
get hasUnits(): boolean;
|
||||
|
||||
/**
|
||||
* If [[value]] is an integer according to [[isInt]], returns it rounded to
|
||||
* that integer. Otherwise, throws an error.
|
||||
* If {@link value} is an integer according to {@link isInt}, returns it
|
||||
* rounded to that integer. Otherwise, throws an error.
|
||||
*
|
||||
* @param name - The name of the function argument `this` came from (without
|
||||
* the `$`) if it came from an argument. Used for error reporting.
|
||||
@ -76,9 +76,9 @@ export class SassNumber extends Value {
|
||||
assertInt(name?: string): number;
|
||||
|
||||
/**
|
||||
* Returns [[value]] if it's within `min` and `max`. If [[value]] is equal to
|
||||
* `min` or `max` according to Sass's equality, returns `min` or `max`
|
||||
* respectively. Otherwise, throws an error.
|
||||
* Returns {@link value} if it's within `min` and `max`. If {@link value} is
|
||||
* equal to `min` or `max` according to Sass's equality, returns `min` or
|
||||
* `max` respectively. Otherwise, throws an error.
|
||||
*
|
||||
* @param name - The name of the function argument `this` came from (without
|
||||
* the `$`) if it came from an argument. Used for error reporting.
|
||||
@ -120,12 +120,12 @@ export class SassNumber extends Value {
|
||||
* either `newNumerators` or `newDenominators` are not empty, or vice-versa.
|
||||
*
|
||||
* @param newNumerators - The numerator units to convert this number to. This
|
||||
* may be either a plain JavaScript array or an immutable [[List]] from the
|
||||
* [`immutable` package](https://immutable-js.com/).
|
||||
* may be either a plain JavaScript array or an immutable {@link List} from
|
||||
* the [`immutable` package](https://immutable-js.com/).
|
||||
*
|
||||
* @param newDenominators - The denominator units to convert this number to.
|
||||
* This may be either a plain JavaScript array or an immutable [[List]] from
|
||||
* the [`immutable` package](https://immutable-js.com/).
|
||||
* This may be either a plain JavaScript array or an immutable {@link List}
|
||||
* from the [`immutable` package](https://immutable-js.com/).
|
||||
*
|
||||
* @param name - The name of the function argument `this` came from (without
|
||||
* the `$`) if it came from an argument. Used for error reporting.
|
||||
@ -155,20 +155,20 @@ export class SassNumber extends Value {
|
||||
): SassNumber;
|
||||
|
||||
/**
|
||||
* Returns [[value]], converted to the units represented by `newNumerators`
|
||||
* and `newDenominators`.
|
||||
* Returns {@link value}, converted to the units represented by
|
||||
* `newNumerators` and `newDenominators`.
|
||||
*
|
||||
* @throws `Error` if this number's units are incompatible with
|
||||
* `newNumerators` and `newDenominators`; or if this number is unitless and
|
||||
* either `newNumerators` or `newDenominators` are not empty, or vice-versa.
|
||||
*
|
||||
* @param newNumerators - The numerator units to convert [[value]] to. This
|
||||
* may be either a plain JavaScript array or an immutable [[List]] from the
|
||||
* [`immutable` package](https://immutable-js.com/).
|
||||
* @param newNumerators - The numerator units to convert {@link value} to.
|
||||
* This may be either a plain JavaScript array or an immutable {@link List}
|
||||
* from the [`immutable` package](https://immutable-js.com/).
|
||||
*
|
||||
* @param newDenominators - The denominator units to convert [[value]] to.
|
||||
* This may be either a plain JavaScript array or an immutable [[List]] from
|
||||
* the [`immutable` package](https://immutable-js.com/).
|
||||
* @param newDenominators - The denominator units to convert {@link value} to.
|
||||
* This may be either a plain JavaScript array or an immutable {@link List}
|
||||
* from the [`immutable` package](https://immutable-js.com/).
|
||||
*
|
||||
* @param name - The name of the function argument `this` came from (without
|
||||
* the `$`) if it came from an argument. Used for error reporting.
|
||||
@ -180,7 +180,7 @@ export class SassNumber extends Value {
|
||||
): number;
|
||||
|
||||
/**
|
||||
* Returns [[value]], converted to the same units as `other`.
|
||||
* Returns {@link value}, converted to the same units as `other`.
|
||||
*
|
||||
* @throws `Error` if this number's units are incompatible with `other`'s
|
||||
* units, or if either number is unitless but the other is not.
|
||||
@ -201,7 +201,7 @@ export class SassNumber extends Value {
|
||||
* Returns a copy of this number, converted to the units represented by
|
||||
* `newNumerators` and `newDenominators`.
|
||||
*
|
||||
* Unlike [[convert]] this does *not* throw an error if this number is
|
||||
* Unlike {@link convert} this does *not* throw an error if this number is
|
||||
* unitless and either `newNumerators` or `newDenominators` are not empty, or
|
||||
* vice-versa. Instead, it treats all unitless numbers as convertible to and
|
||||
* from all units without changing the value.
|
||||
@ -210,12 +210,12 @@ export class SassNumber extends Value {
|
||||
* `newNumerators` and `newDenominators`.
|
||||
*
|
||||
* @param newNumerators - The numerator units to convert this number to. This
|
||||
* may be either a plain JavaScript array or an immutable [[List]] from the
|
||||
* [`immutable` package](https://immutable-js.com/).
|
||||
* may be either a plain JavaScript array or an immutable {@link List} from
|
||||
* the [`immutable` package](https://immutable-js.com/).
|
||||
*
|
||||
* @param newDenominators - The denominator units to convert this number to.
|
||||
* This may be either a plain JavaScript array or an immutable [[List]] from
|
||||
* the [`immutable` package](https://immutable-js.com/).
|
||||
* This may be either a plain JavaScript array or an immutable {@link List}
|
||||
* from the [`immutable` package](https://immutable-js.com/).
|
||||
*
|
||||
* @param name - The name of the function argument `this` came from (without
|
||||
* the `$`) if it came from an argument. Used for error reporting.
|
||||
@ -230,10 +230,10 @@ export class SassNumber extends Value {
|
||||
* Returns a copy of this number, converted to the units represented by
|
||||
* `newNumerators` and `newDenominators`.
|
||||
*
|
||||
* Unlike [[convertToMatch]] this does *not* throw an error if this number is
|
||||
* unitless and either `newNumerators` or `newDenominators` are not empty, or
|
||||
* vice-versa. Instead, it treats all unitless numbers as convertible to and
|
||||
* from all units without changing the value.
|
||||
* Unlike {@link convertToMatch} this does *not* throw an error if this number
|
||||
* is unitless and either `newNumerators` or `newDenominators` are not empty,
|
||||
* or vice-versa. Instead, it treats all unitless numbers as convertible to
|
||||
* and from all units without changing the value.
|
||||
*
|
||||
* @throws `Error` if this number's units are incompatible with `other`'s
|
||||
* units.
|
||||
@ -251,24 +251,24 @@ export class SassNumber extends Value {
|
||||
): SassNumber;
|
||||
|
||||
/**
|
||||
* Returns [[value]], converted to the units represented by `newNumerators` and
|
||||
* `newDenominators`.
|
||||
* Returns {@link value}, converted to the units represented by
|
||||
* `newNumerators` and `newDenominators`.
|
||||
*
|
||||
* Unlike [[convertValue]] this does *not* throw an error if this number is
|
||||
* unitless and either `newNumerators` or `newDenominators` are not empty, or
|
||||
* vice-versa. Instead, it treats all unitless numbers as convertible to and
|
||||
* from all units without changing the value.
|
||||
* Unlike {@link convertValue} this does *not* throw an error if this number
|
||||
* is unitless and either `newNumerators` or `newDenominators` are not empty,
|
||||
* or vice-versa. Instead, it treats all unitless numbers as convertible to
|
||||
* and from all units without changing the value.
|
||||
*
|
||||
* @throws `Error` if this number's units are incompatible with
|
||||
* `newNumerators` and `newDenominators`.
|
||||
*
|
||||
* @param newNumerators - The numerator units to convert [[value]] to. This
|
||||
* may be either a plain JavaScript array or an immutable [[List]] from the
|
||||
* [`immutable` package](https://immutable-js.com/).
|
||||
* @param newNumerators - The numerator units to convert {@link value} to.
|
||||
* This may be either a plain JavaScript array or an immutable {@link List}
|
||||
* from the [`immutable` package](https://immutable-js.com/).
|
||||
*
|
||||
* @param newDenominators - The denominator units to convert [[value]] to.
|
||||
* This may be either a plain JavaScript array or an immutable [[List]] from
|
||||
* the [`immutable` package](https://immutable-js.com/).
|
||||
* @param newDenominators - The denominator units to convert {@link value} to.
|
||||
* This may be either a plain JavaScript array or an immutable {@link List}
|
||||
* from the [`immutable` package](https://immutable-js.com/).
|
||||
*
|
||||
* @param name - The name of the function argument `this` came from (without
|
||||
* the `$`) if it came from an argument. Used for error reporting.
|
||||
@ -280,10 +280,10 @@ export class SassNumber extends Value {
|
||||
): number;
|
||||
|
||||
/**
|
||||
* Returns [[value]], converted to the units represented by `newNumerators`
|
||||
* and `newDenominators`.
|
||||
* Returns {@link value}, converted to the units represented by
|
||||
* `newNumerators` and `newDenominators`.
|
||||
*
|
||||
* Unlike [[convertValueToMatch]] this does *not* throw an error if this
|
||||
* Unlike {@link convertValueToMatch} this does *not* throw an error if this
|
||||
* number is unitless and either `newNumerators` or `newDenominators` are not
|
||||
* empty, or vice-versa. Instead, it treats all unitless numbers as
|
||||
* convertible to and from all units without changing the value.
|
||||
|
2
js-api-doc/value/string.d.ts
vendored
2
js-api-doc/value/string.d.ts
vendored
@ -62,7 +62,7 @@ export class SassString extends Value {
|
||||
get sassLength(): number;
|
||||
|
||||
/**
|
||||
* Converts `sassIndex` to a JavaScript index into [[text]].
|
||||
* Converts `sassIndex` to a JavaScript index into {@link text}.
|
||||
*
|
||||
* Sass indices are one-based, while JavaScript indices are zero-based. Sass
|
||||
* indices may also be negative in order to index from the end of the string.
|
||||
|
151
package-lock.json
generated
151
package-lock.json
generated
@ -22,12 +22,12 @@
|
||||
"source-map-js": "^0.6.2",
|
||||
"ts-dedent": "^2.2.0",
|
||||
"ts-node": "^10.2.1",
|
||||
"typedoc": "^0.22.4"
|
||||
"typedoc": "^0.24.7"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/node": "^14.11.2",
|
||||
"gts": "^3.1.0",
|
||||
"typescript": "^4.0.3"
|
||||
"typescript": "^5.0.4"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=14.0.0"
|
||||
@ -569,6 +569,11 @@
|
||||
"node": ">=8"
|
||||
}
|
||||
},
|
||||
"node_modules/ansi-sequence-parser": {
|
||||
"version": "1.1.0",
|
||||
"resolved": "https://registry.npmjs.org/ansi-sequence-parser/-/ansi-sequence-parser-1.1.0.tgz",
|
||||
"integrity": "sha512-lEm8mt52to2fT8GhciPCGeCXACSz2UwIN4X2e2LJSnZ5uAbn2/dsYdOmUXq0AtWS5cpAupysIneExOgH0Vd2TQ=="
|
||||
},
|
||||
"node_modules/ansi-styles": {
|
||||
"version": "4.3.0",
|
||||
"resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz",
|
||||
@ -1994,6 +1999,7 @@
|
||||
"version": "1.0.6",
|
||||
"resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz",
|
||||
"integrity": "sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==",
|
||||
"dev": true,
|
||||
"dependencies": {
|
||||
"once": "^1.3.0",
|
||||
"wrappy": "1"
|
||||
@ -2786,6 +2792,7 @@
|
||||
"version": "1.4.0",
|
||||
"resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz",
|
||||
"integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=",
|
||||
"dev": true,
|
||||
"dependencies": {
|
||||
"wrappy": "1"
|
||||
}
|
||||
@ -3451,13 +3458,14 @@
|
||||
}
|
||||
},
|
||||
"node_modules/shiki": {
|
||||
"version": "0.10.1",
|
||||
"resolved": "https://registry.npmjs.org/shiki/-/shiki-0.10.1.tgz",
|
||||
"integrity": "sha512-VsY7QJVzU51j5o1+DguUd+6vmCmZ5v/6gYu4vyYAhzjuNQU6P/vmSy4uQaOhvje031qQMiW0d2BwgMH52vqMng==",
|
||||
"version": "0.14.2",
|
||||
"resolved": "https://registry.npmjs.org/shiki/-/shiki-0.14.2.tgz",
|
||||
"integrity": "sha512-ltSZlSLOuSY0M0Y75KA+ieRaZ0Trf5Wl3gutE7jzLuIcWxLp5i/uEnLoQWNvgKXQ5OMpGkJnVMRLAuzjc0LJ2A==",
|
||||
"dependencies": {
|
||||
"jsonc-parser": "^3.0.0",
|
||||
"vscode-oniguruma": "^1.6.1",
|
||||
"vscode-textmate": "5.2.0"
|
||||
"ansi-sequence-parser": "^1.1.0",
|
||||
"jsonc-parser": "^3.2.0",
|
||||
"vscode-oniguruma": "^1.7.0",
|
||||
"vscode-textmate": "^8.0.0"
|
||||
}
|
||||
},
|
||||
"node_modules/signal-exit": {
|
||||
@ -3877,24 +3885,23 @@
|
||||
}
|
||||
},
|
||||
"node_modules/typedoc": {
|
||||
"version": "0.22.18",
|
||||
"resolved": "https://registry.npmjs.org/typedoc/-/typedoc-0.22.18.tgz",
|
||||
"integrity": "sha512-NK9RlLhRUGMvc6Rw5USEYgT4DVAUFk7IF7Q6MYfpJ88KnTZP7EneEa4RcP+tX1auAcz7QT1Iy0bUSZBYYHdoyA==",
|
||||
"version": "0.24.7",
|
||||
"resolved": "https://registry.npmjs.org/typedoc/-/typedoc-0.24.7.tgz",
|
||||
"integrity": "sha512-zzfKDFIZADA+XRIp2rMzLe9xZ6pt12yQOhCr7cD7/PBTjhPmMyMvGrkZ2lPNJitg3Hj1SeiYFNzCsSDrlpxpKw==",
|
||||
"dependencies": {
|
||||
"glob": "^8.0.3",
|
||||
"lunr": "^2.3.9",
|
||||
"marked": "^4.0.16",
|
||||
"minimatch": "^5.1.0",
|
||||
"shiki": "^0.10.1"
|
||||
"marked": "^4.3.0",
|
||||
"minimatch": "^9.0.0",
|
||||
"shiki": "^0.14.1"
|
||||
},
|
||||
"bin": {
|
||||
"typedoc": "bin/typedoc"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">= 12.10.0"
|
||||
"node": ">= 14.14"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"typescript": "4.0.x || 4.1.x || 4.2.x || 4.3.x || 4.4.x || 4.5.x || 4.6.x || 4.7.x"
|
||||
"typescript": "4.6.x || 4.7.x || 4.8.x || 4.9.x || 5.0.x"
|
||||
}
|
||||
},
|
||||
"node_modules/typedoc/node_modules/brace-expansion": {
|
||||
@ -3905,45 +3912,30 @@
|
||||
"balanced-match": "^1.0.0"
|
||||
}
|
||||
},
|
||||
"node_modules/typedoc/node_modules/glob": {
|
||||
"version": "8.1.0",
|
||||
"resolved": "https://registry.npmjs.org/glob/-/glob-8.1.0.tgz",
|
||||
"integrity": "sha512-r8hpEjiQEYlF2QU0df3dS+nxxSIreXQS1qRhMJM0Q5NDdR386C7jb7Hwwod8Fgiuex+k0GFjgft18yvxm5XoCQ==",
|
||||
"node_modules/typedoc/node_modules/minimatch": {
|
||||
"version": "9.0.0",
|
||||
"resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.0.tgz",
|
||||
"integrity": "sha512-0jJj8AvgKqWN05mrwuqi8QYKx1WmYSUoKSxu5Qhs9prezTz10sxAHGNZe9J9cqIJzta8DWsleh2KaVaLl6Ru2w==",
|
||||
"dependencies": {
|
||||
"fs.realpath": "^1.0.0",
|
||||
"inflight": "^1.0.4",
|
||||
"inherits": "2",
|
||||
"minimatch": "^5.0.1",
|
||||
"once": "^1.3.0"
|
||||
"brace-expansion": "^2.0.1"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=12"
|
||||
"node": ">=16 || 14 >=14.17"
|
||||
},
|
||||
"funding": {
|
||||
"url": "https://github.com/sponsors/isaacs"
|
||||
}
|
||||
},
|
||||
"node_modules/typedoc/node_modules/minimatch": {
|
||||
"version": "5.1.6",
|
||||
"resolved": "https://registry.npmjs.org/minimatch/-/minimatch-5.1.6.tgz",
|
||||
"integrity": "sha512-lKwV/1brpG6mBUFHtb7NUmtABCb2WZZmm2wNiOA5hAb8VdCS4B3dtMWyvcoViccwAW/COERjXLt0zP1zXUN26g==",
|
||||
"dependencies": {
|
||||
"brace-expansion": "^2.0.1"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=10"
|
||||
}
|
||||
},
|
||||
"node_modules/typescript": {
|
||||
"version": "4.4.4",
|
||||
"resolved": "https://registry.npmjs.org/typescript/-/typescript-4.4.4.tgz",
|
||||
"integrity": "sha512-DqGhF5IKoBl8WNf8C1gu8q0xZSInh9j1kJJMqT3a94w1JzVaBU4EXOSMrz9yDqMT0xt3selp83fuFMQ0uzv6qA==",
|
||||
"version": "5.0.4",
|
||||
"resolved": "https://registry.npmjs.org/typescript/-/typescript-5.0.4.tgz",
|
||||
"integrity": "sha512-cW9T5W9xY37cc+jfEnaUvX91foxtHkza3Nw3wkoF4sSlKn0MONdkdEndig/qPBWXNkmplh3NzayQzCiHM4/hqw==",
|
||||
"bin": {
|
||||
"tsc": "bin/tsc",
|
||||
"tsserver": "bin/tsserver"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=4.2.0"
|
||||
"node": ">=12.20"
|
||||
}
|
||||
},
|
||||
"node_modules/uri-js": {
|
||||
@ -3982,9 +3974,9 @@
|
||||
"integrity": "sha512-L9WMGRfrjOhgHSdOYgCt/yRMsXzLDJSL7BPrOZt73gU0iWO4mpqzqQzOz5srxqTvMBaR0XZTSrVWo4j55Rc6cA=="
|
||||
},
|
||||
"node_modules/vscode-textmate": {
|
||||
"version": "5.2.0",
|
||||
"resolved": "https://registry.npmjs.org/vscode-textmate/-/vscode-textmate-5.2.0.tgz",
|
||||
"integrity": "sha512-Uw5ooOQxRASHgu6C7GVvUxisKXfSgW4oFlO+aa+PAkgmH89O3CXxEEzNRNtHSqtXFTl0nAC1uYj0GMSH27uwtQ=="
|
||||
"version": "8.0.0",
|
||||
"resolved": "https://registry.npmjs.org/vscode-textmate/-/vscode-textmate-8.0.0.tgz",
|
||||
"integrity": "sha512-AFbieoL7a5LMqcnOF04ji+rpXadgOXnZsxQr//r83kLPr7biP7am3g9zbaZIaBGwBRWeSvoMD4mgPdX3e4NWBg=="
|
||||
},
|
||||
"node_modules/which": {
|
||||
"version": "2.0.2",
|
||||
@ -4013,7 +4005,8 @@
|
||||
"node_modules/wrappy": {
|
||||
"version": "1.0.2",
|
||||
"resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz",
|
||||
"integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8="
|
||||
"integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=",
|
||||
"dev": true
|
||||
},
|
||||
"node_modules/write-file-atomic": {
|
||||
"version": "3.0.3",
|
||||
@ -4447,6 +4440,11 @@
|
||||
"integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==",
|
||||
"dev": true
|
||||
},
|
||||
"ansi-sequence-parser": {
|
||||
"version": "1.1.0",
|
||||
"resolved": "https://registry.npmjs.org/ansi-sequence-parser/-/ansi-sequence-parser-1.1.0.tgz",
|
||||
"integrity": "sha512-lEm8mt52to2fT8GhciPCGeCXACSz2UwIN4X2e2LJSnZ5uAbn2/dsYdOmUXq0AtWS5cpAupysIneExOgH0Vd2TQ=="
|
||||
},
|
||||
"ansi-styles": {
|
||||
"version": "4.3.0",
|
||||
"resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz",
|
||||
@ -5495,6 +5493,7 @@
|
||||
"version": "1.0.6",
|
||||
"resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz",
|
||||
"integrity": "sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"once": "^1.3.0",
|
||||
"wrappy": "1"
|
||||
@ -6120,6 +6119,7 @@
|
||||
"version": "1.4.0",
|
||||
"resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz",
|
||||
"integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"wrappy": "1"
|
||||
}
|
||||
@ -6583,13 +6583,14 @@
|
||||
"dev": true
|
||||
},
|
||||
"shiki": {
|
||||
"version": "0.10.1",
|
||||
"resolved": "https://registry.npmjs.org/shiki/-/shiki-0.10.1.tgz",
|
||||
"integrity": "sha512-VsY7QJVzU51j5o1+DguUd+6vmCmZ5v/6gYu4vyYAhzjuNQU6P/vmSy4uQaOhvje031qQMiW0d2BwgMH52vqMng==",
|
||||
"version": "0.14.2",
|
||||
"resolved": "https://registry.npmjs.org/shiki/-/shiki-0.14.2.tgz",
|
||||
"integrity": "sha512-ltSZlSLOuSY0M0Y75KA+ieRaZ0Trf5Wl3gutE7jzLuIcWxLp5i/uEnLoQWNvgKXQ5OMpGkJnVMRLAuzjc0LJ2A==",
|
||||
"requires": {
|
||||
"jsonc-parser": "^3.0.0",
|
||||
"vscode-oniguruma": "^1.6.1",
|
||||
"vscode-textmate": "5.2.0"
|
||||
"ansi-sequence-parser": "^1.1.0",
|
||||
"jsonc-parser": "^3.2.0",
|
||||
"vscode-oniguruma": "^1.7.0",
|
||||
"vscode-textmate": "^8.0.0"
|
||||
}
|
||||
},
|
||||
"signal-exit": {
|
||||
@ -6906,15 +6907,14 @@
|
||||
}
|
||||
},
|
||||
"typedoc": {
|
||||
"version": "0.22.18",
|
||||
"resolved": "https://registry.npmjs.org/typedoc/-/typedoc-0.22.18.tgz",
|
||||
"integrity": "sha512-NK9RlLhRUGMvc6Rw5USEYgT4DVAUFk7IF7Q6MYfpJ88KnTZP7EneEa4RcP+tX1auAcz7QT1Iy0bUSZBYYHdoyA==",
|
||||
"version": "0.24.7",
|
||||
"resolved": "https://registry.npmjs.org/typedoc/-/typedoc-0.24.7.tgz",
|
||||
"integrity": "sha512-zzfKDFIZADA+XRIp2rMzLe9xZ6pt12yQOhCr7cD7/PBTjhPmMyMvGrkZ2lPNJitg3Hj1SeiYFNzCsSDrlpxpKw==",
|
||||
"requires": {
|
||||
"glob": "^8.0.3",
|
||||
"lunr": "^2.3.9",
|
||||
"marked": "^4.0.16",
|
||||
"minimatch": "^5.1.0",
|
||||
"shiki": "^0.10.1"
|
||||
"marked": "^4.3.0",
|
||||
"minimatch": "^9.0.0",
|
||||
"shiki": "^0.14.1"
|
||||
},
|
||||
"dependencies": {
|
||||
"brace-expansion": {
|
||||
@ -6925,22 +6925,10 @@
|
||||
"balanced-match": "^1.0.0"
|
||||
}
|
||||
},
|
||||
"glob": {
|
||||
"version": "8.1.0",
|
||||
"resolved": "https://registry.npmjs.org/glob/-/glob-8.1.0.tgz",
|
||||
"integrity": "sha512-r8hpEjiQEYlF2QU0df3dS+nxxSIreXQS1qRhMJM0Q5NDdR386C7jb7Hwwod8Fgiuex+k0GFjgft18yvxm5XoCQ==",
|
||||
"requires": {
|
||||
"fs.realpath": "^1.0.0",
|
||||
"inflight": "^1.0.4",
|
||||
"inherits": "2",
|
||||
"minimatch": "^5.0.1",
|
||||
"once": "^1.3.0"
|
||||
}
|
||||
},
|
||||
"minimatch": {
|
||||
"version": "5.1.6",
|
||||
"resolved": "https://registry.npmjs.org/minimatch/-/minimatch-5.1.6.tgz",
|
||||
"integrity": "sha512-lKwV/1brpG6mBUFHtb7NUmtABCb2WZZmm2wNiOA5hAb8VdCS4B3dtMWyvcoViccwAW/COERjXLt0zP1zXUN26g==",
|
||||
"version": "9.0.0",
|
||||
"resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.0.tgz",
|
||||
"integrity": "sha512-0jJj8AvgKqWN05mrwuqi8QYKx1WmYSUoKSxu5Qhs9prezTz10sxAHGNZe9J9cqIJzta8DWsleh2KaVaLl6Ru2w==",
|
||||
"requires": {
|
||||
"brace-expansion": "^2.0.1"
|
||||
}
|
||||
@ -6948,9 +6936,9 @@
|
||||
}
|
||||
},
|
||||
"typescript": {
|
||||
"version": "4.4.4",
|
||||
"resolved": "https://registry.npmjs.org/typescript/-/typescript-4.4.4.tgz",
|
||||
"integrity": "sha512-DqGhF5IKoBl8WNf8C1gu8q0xZSInh9j1kJJMqT3a94w1JzVaBU4EXOSMrz9yDqMT0xt3selp83fuFMQ0uzv6qA=="
|
||||
"version": "5.0.4",
|
||||
"resolved": "https://registry.npmjs.org/typescript/-/typescript-5.0.4.tgz",
|
||||
"integrity": "sha512-cW9T5W9xY37cc+jfEnaUvX91foxtHkza3Nw3wkoF4sSlKn0MONdkdEndig/qPBWXNkmplh3NzayQzCiHM4/hqw=="
|
||||
},
|
||||
"uri-js": {
|
||||
"version": "4.4.1",
|
||||
@ -6988,9 +6976,9 @@
|
||||
"integrity": "sha512-L9WMGRfrjOhgHSdOYgCt/yRMsXzLDJSL7BPrOZt73gU0iWO4mpqzqQzOz5srxqTvMBaR0XZTSrVWo4j55Rc6cA=="
|
||||
},
|
||||
"vscode-textmate": {
|
||||
"version": "5.2.0",
|
||||
"resolved": "https://registry.npmjs.org/vscode-textmate/-/vscode-textmate-5.2.0.tgz",
|
||||
"integrity": "sha512-Uw5ooOQxRASHgu6C7GVvUxisKXfSgW4oFlO+aa+PAkgmH89O3CXxEEzNRNtHSqtXFTl0nAC1uYj0GMSH27uwtQ=="
|
||||
"version": "8.0.0",
|
||||
"resolved": "https://registry.npmjs.org/vscode-textmate/-/vscode-textmate-8.0.0.tgz",
|
||||
"integrity": "sha512-AFbieoL7a5LMqcnOF04ji+rpXadgOXnZsxQr//r83kLPr7biP7am3g9zbaZIaBGwBRWeSvoMD4mgPdX3e4NWBg=="
|
||||
},
|
||||
"which": {
|
||||
"version": "2.0.2",
|
||||
@ -7010,7 +6998,8 @@
|
||||
"wrappy": {
|
||||
"version": "1.0.2",
|
||||
"resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz",
|
||||
"integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8="
|
||||
"integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=",
|
||||
"dev": true
|
||||
},
|
||||
"write-file-atomic": {
|
||||
"version": "3.0.3",
|
||||
|
@ -36,11 +36,11 @@
|
||||
"source-map-js": "^0.6.2",
|
||||
"ts-dedent": "^2.2.0",
|
||||
"ts-node": "^10.2.1",
|
||||
"typedoc": "^0.22.4"
|
||||
"typedoc": "^0.24.7"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/node": "^14.11.2",
|
||||
"gts": "^3.1.0",
|
||||
"typescript": "^4.0.3"
|
||||
"typescript": "^5.0.4"
|
||||
}
|
||||
}
|
||||
|
@ -1,6 +1,8 @@
|
||||
{
|
||||
"excludePrivate": true,
|
||||
"excludeProtected": true,
|
||||
"navigation": {
|
||||
"includeCategories": true,
|
||||
},
|
||||
"hideParameterTypesInTitle": false,
|
||||
"categorizeByGroup": false,
|
||||
"categoryOrder": [
|
||||
"Compile",
|
||||
|
Loading…
Reference in New Issue
Block a user