6.0.6 • Published 7 months ago

@types/sass-true v6.0.6

Weekly downloads
-
License
MIT
Repository
github
Last release
7 months ago

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

// Type definitions for sass-true 6.0
// Project: https://github.com/oddbird/true
// Definitions by: robertmaier <https://github.com/robertmaier>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
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: Fri, 28 Jan 2022 20:31:32 GMT
  • Dependencies: @types/sass
  • Global values: none

Credits

These definitions were written by robertmaier.

6.0.6

7 months ago

6.0.5

7 months ago

6.0.4

8 months ago

6.0.3

1 year ago

6.0.2

2 years ago

6.0.1

2 years ago

6.0.0

2 years ago