Skip to main content

readJsonSync

Callable

  • readJsonSync<T>(path: string): T

  • Reads a JSON file and returns its contents


    Type parameters

    • T

    Parameters

    • path: string

      The path to be read

    Returns T

    The contents of the file