@ac-essentials/misc-util
    Preparing search index...

    Function readJsoncFile

    • Reads a JSONC file and parses its content.

      Type Parameters

      Parameters

      • path: FileHandle | PathLike

        Path to the JSONC file.

      • options: O

        Options for reading the file and parsing JSONC.

      Returns Promise<
          O["allowEmptyContent"] extends false
              ? JsonValue
              : O["allowEmptyContent"] extends true
                  ? undefined
                  | JsonValue
                  : undefined | JsonValue,
      >

      Parsed JSONC content.