Spec-Zone.ru › Sass

Version

Compatibility:
Dart Sass
since 1.74.0
Node Sass
✗

A semantic version of the compiler.

Hierarchy

  • Version
  • Defined in js-api-doc/deprecations.d.ts:281
Index

Constructors

constructor

Properties

major minor patch

Methods

parse

Constructors

constructor

  • new Version(major: number, minor: number, patch: number): Version
  • Constructs a new version.

    All components must be non-negative integers.

    Parameters

    • major: number

      The major version.

    • minor: number

      The minor version.

    • patch: number

      The patch version.

    Returns Version

    • Defined in js-api-doc/deprecations.d.ts:291

Properties

Readonly major

major: number
  • Defined in js-api-doc/deprecations.d.ts:292

Readonly minor

minor: number
  • Defined in js-api-doc/deprecations.d.ts:293

Readonly patch

patch: number
  • Defined in js-api-doc/deprecations.d.ts:294

Methods

Static parse

  • parse(version: string): Version
  • Parses a version from a string.

    This throws an error if a valid version can't be parsed.

    Parameters

    • version: string

      A string in the form "major.minor.patch".

    Returns Version

    • Defined in js-api-doc/deprecations.d.ts:303
sass
  • Compile
    • AsyncCompiler
    • Compiler
    • CompileResult
    • compile
    • compileAsync
    • compileString
    • compileStringAsync
    • initAsyncCompiler
    • initCompiler
  • Options
    • Options
    • StringOptions
    • OutputStyle
    • StringOptionsWithImporter
    • StringOptionsWithoutImporter
    • Syntax
  • Logger
    • Logger
      • silent
    • Logger
    • SourceLocation
    • SourceSpan
    • LoggerWarnOptions
  • Importer
    • NodePackageImporter
    • FileImporter
    • Importer
    • ImporterResult
  • Custom Function
    • CalculationInterpolation
    • CalculationOperation
    • SassArgumentList
    • SassBoolean
    • SassCalculation
    • SassColor
    • SassFunction
    • SassList
    • SassMap
    • SassMixin
    • SassNumber
    • SassString
    • Value
    • CalculationOperator
    • CalculationValue
    • CustomFunction
    • ListSeparator
    • sassFalse
    • sassNull
    • sassTrue
  • Other
    • Exception
    • CanonicalizeContext
    • Deprecations
    • LegacyFileOptions
    • ChannelName
    • ChannelNameHsl
    • ChannelNameHwb
    • ChannelNameLab
    • ChannelNameLch
    • ChannelNameRgb
    • ChannelNameXyz
    • ColorSpaceHsl
    • ColorSpaceHwb
    • ColorSpaceLab
    • ColorSpaceLch
    • ColorSpaceRgb
    • ColorSpaceXyz
    • GamutMapMethod
    • HueInterpolationMethod
    • KnownColorSpace
    • PolarColorSpace
    • PromiseOr
    • RectangularColorSpace
    • info
  • Legacy
    • types
      • Boolean
      • Color
      • Error
      • List
      • Map
      • Null
      • Number
      • String
    • LegacyException
    • LegacyImporterThis
    • LegacyPluginThis
    • LegacyResult
    • LegacySharedOptions
    • LegacyStringOptions
    • LegacyAsyncFunction
    • LegacyAsyncFunctionDone
    • LegacyAsyncImporter
    • LegacyFunction
    • LegacyImporter
    • LegacyImporterResult
    • LegacyOptions
    • LegacySyncFunction
    • LegacySyncImporter
    • LegacyValue
    • FALSE
    • NULL
    • TRUE
    • render
    • renderSync
  • Messages
    • Version
    • Deprecation
    • DeprecationOrId
    • DeprecationStatus
    • deprecations

© 2006–2025 the Sass team, and numerous contributors
Licensed under the MIT License.
https://sass-lang.com/documentation/js-api/classes/Version

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API