solid-router icon indicating copy to clipboard operation
solid-router copied to clipboard

RequestEvent.nativeEvent is missing from the declared types

Open kjrocker opened this issue 11 months ago • 0 comments

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: https://github.com/solidjs/solid-router/blob/3c214ce2ceb9b7d9d39d143229a8c6145e83e681/src/types.ts#L3

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

kjrocker avatar Feb 25 '25 22:02 kjrocker