Options
All
  • Public
  • Public/Protected
  • All
Menu

Class to insert the separators into the imports.

Hierarchy

  • ImportSeparator

Index

Constructors

Methods

  • decideSeparator(a: undefined | null | Import, b: undefined | null | Import): boolean
  • Given two imports, this will decide if a separator should be placed in between according to the separate by rules.

    If at least one of them is not an import no more separator are needed.

    Parameters

    • a: undefined | null | Import

      Import A

    • b: undefined | null | Import

      Import B

    Returns boolean

Properties

separateByRules: SeparateByFunction[] = []

Array of separate by rules. Order is not relevant.

Generated using TypeDoc