Skip to content

Improve the type of crawlingContext.session #3280

@janbuchar

Description

@janbuchar
  • currently it's Session | undefined, but undefined happens if and only if the crawler has useSessionPool: false
  • we can make the type dependent on the value of the configuration option (the exact method is up for discussion)
  • or we can just forbid undefined and throw on runtime access (much easier implementation)

Metadata

Metadata

Assignees

No one assigned

    Labels

    t-toolingIssues with this label are in the ownership of the tooling team.

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions