Options
All
  • Public
  • Public/Protected
  • All
Menu

Module "api"

Index

Interfaces

Type aliases

Variables

Object literals

Type aliases

Conditional

Conditional: string | IObjectOf<boolean | number | string>

Configuration type for conditional rule functions (i.e. at_media, at_supports)

RuleFn

RuleFn: (acc: string[], opts: CSSOpts) => string[]

Function type used by at_xxx() functions or any other function in the head position of a rule scope array.

These fns have special behavior and are resonsible to append their results to the CSS output string accumulator directly.

Type declaration

    • (acc: string[], opts: CSSOpts): string[]
    • Parameters

      Returns string[]

Variables

Const DEFAULT_VENDORS

DEFAULT_VENDORS: string[] = ["-moz-", "-ms-", "-o-", "-webkit-"]

Object literals

Const COMPACT

COMPACT: object

Default format config used by css function. Forms "minimized" CSS without obsolete white space and omits comments unless they were forced.

comments

comments: false = false

declEnd

declEnd: string = "}"

declStart

declStart: string = "{"

decls

decls: string = ""

indent

indent: string = ""

ruleSep

ruleSep: string = ","

rules

rules: string = ""

valSep

valSep: string = ""

Const PRETTY

PRETTY: object

Pretty printing format config with line breaks and indentation.

comments

comments: true = true

declEnd

declEnd: string = "}"

declStart

declStart: string = " {"

decls

decls: string = ""

indent

indent: string = " "

ruleSep

ruleSep: string = ", "

rules

rules: string = ""

valSep

valSep: string = " "

Generated using TypeDoc