Interface Interface

  • The function 'JSON' is a TypeScript function that reads a JSON file and returns its parsed content.

    Parameters

    • File: string

      The File parameter is a string that represents the name or path of the JSON file that you want to parse.

    • OptionalFrom: string

      The From parameter is an optional string that represents the directory path from which the JSON file should be loaded. If From is provided, it will be used as the base directory path. If From is not provided, the current directory will be used as the base directory path.

    Returns Promise<any>