Skip to content

Setting format: "markdown" yields typescript error #9

Closed
@moorage

Description

@moorage

Have this code in my typescript file, but getting a Type '"markdown"' is not assignable to type 'Format | undefined':

import { ScrapflyClient, ScrapeConfig, ScrapeResult, log } from "scrapfly-sdk";

    const scrapeConfig = new ScrapeConfig({
      url,
      asp: true,
      country: "US", 
      render_js: true, 
      format: "markdown", // ERROR: Type '"markdown"' is not assignable to type 'Format | undefined'
    });
    ```

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions