Skip to content

RequestEvent.nativeEvent is missing from the declared types #515

@kjrocker

Description

@kjrocker

Describe the bug

Ran into an issue where the documentation recommends I pass event.nativeEvent (I'm parsing cookies with the Vinxi methods).

Documentation: https://docs.solidjs.com/solid-start/advanced/request-events#nativeevent

The type:

declare module "solid-js/web" {

My warning:
Image

Your Example Website or App

https://github.com/kjrocker/solid-start/blob/supabase-auth-example/examples/with-supabase-auth/src/util/supabase/server.ts

Steps to Reproduce the Bug or Issue

  1. Have anything with type RequestEvent
  2. Attempt to access nativeEvent

Expected behavior

I'd like the nativeEvent to be exported as part of the type using the underlying Vinxi type.

Screenshots or Videos

No response

Platform

...the source code?

Additional context

No response

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