Documentation

    Function parseJsonFile

    • Parses a JSON file and returns an array of parsed data.

      Parameters

      • opts: { fileContent: string; filename: "block.json" | "theme.json"; filepath: string }

        The arguments for parsing the JSON file.

        • fileContent: string
        • filename: "block.json" | "theme.json"
        • filepath: string

          The filepath of the JSON file to parse.

      Returns Promise<I18nSchema>

      A promise that resolves to an object containing the parsed data.

    MMNEPVFCICPMFPCPTTAAATR