1.0.4 • Published 6 months ago

@types/scss-parser v1.0.4

Weekly downloads
492
License
MIT
Repository
github
Last release
6 months ago

Installation

npm install --save @types/scss-parser

Summary

This package contains type definitions for scss-parser (https://github.com/salesforce-ux/scss-parser).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/scss-parser.

index.d.ts

// Type definitions for scss-parser 1.0
// Project: https://github.com/salesforce-ux/scss-parser
// Definitions by: Wessel van der Linden <https://github.com/wesselvanderlinden>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

export interface InputStreamPosition {
  cursor: number;
  line: number;
  column: number;
}

export interface Node {
  type: string;
  value: string | Node[];
  start?: InputStreamPosition | undefined;
  end?: InputStreamPosition | undefined;
}

export function parse(css: string): Node;

export function stringify(node: Node): string;

Additional Details

  • Last updated: Tue, 06 Jul 2021 16:34:24 GMT
  • Dependencies: none
  • Global values: none

Credits

These definitions were written by Wessel van der Linden.