Options
All
  • Public
  • Public/Protected
  • All
Menu

Namespace path

Index

Type aliases

DirectoryPath: { directory: Path }

Type declaration

DistinctivePath: DirectoryPath | FilePath

The primarily used type for paths.

FilePath: { file: Path }

Type declaration

Path: string[]

Functions

  • Transform a string into a DistinctivePath.

    Directories should have the format path/to/dir/ and files should have the format path/to/file.

    Leading forward slashes are removed too, so you can pass absolute paths.

    Parameters

    • path: string

    Returns DistinctivePath

  • log(path: Path): string
  • Render a raw Path to a string for logging purposes.

    Parameters

    Returns string

  • toPosix(path: DistinctivePath, __namedParameters?: { absolute: boolean }): string
  • Transform a DistinctivePath into a string.

    Directories will have the format path/to/dir/ and files will have the format path/to/file.

    Parameters

    • path: DistinctivePath
    • __namedParameters: { absolute: boolean } = ...
      • absolute: boolean

    Returns string

Generated using TypeDoc