@types/sass-true
TypeScript icon, indicating that this package has built-in type declarations

6.0.6 • Public • Published

Installation

npm install --save @types/sass-true

Summary

This package contains type definitions for sass-true (https://github.com/oddbird/true).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/sass-true.

index.d.ts

/// <reference types="node" />

import type { renderSync } from "sass";
export type Options = Parameters<typeof renderSync>[0];

export interface TrueOptions {
    sass?: typeof import("sass");
    describe: (description: string, fn: () => void) => void;
    it: (description: string, fn: () => void) => void;
    contextLines?: number;
}

export interface Assertion {
    description: string;
    output?: string;
    assertionType?: string;
    expected?: string;
    details?: string;
    passed?: boolean;
}

export interface Test {
    test: string;
    assertions: Assertion[];
}

export interface Module {
    module: string;
    tests: Test[];
    modules?: Module[];
}

export function runSass(sassOptions: Options, trueOptions: TrueOptions): void;
export function formatFailureMessage(assertion: Readonly<Assertion>): string;
export function parse(rawCss: Readonly<string>, ctxLines?: Readonly<number>): Module[];

Additional Details

  • Last updated: Tue, 07 Nov 2023 15:11:36 GMT
  • Dependencies: @types/node, sass

Credits

These definitions were written by robertmaier.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/sass-true

Weekly Downloads

950

Version

6.0.6

License

MIT

Unpacked Size

4.53 kB

Total Files

5

Last publish

Collaborators

  • types