inertia-adapter-solid icon indicating copy to clipboard operation
inertia-adapter-solid copied to clipboard

Expose `InertiaAppProps` type from the index

Open apademide opened this issue 10 months ago • 1 comments

Because the <App /> component receives InertiaAppProps as its props, using said type elsewhere is sometimes required. Currently, it's accessible by digging to "inertia-adapter-solid/dist/types/App", which would work but isn't too pretty.

This one liner PR (despite having 7 commits, git rebases ftw) simply exposes the type from the index file, so import { type InertiaAppProps } from "inertia-adapter-solid" works. This also makes it more convenient for tsconfig using stricter module resolution modes ("moduleResolution": "bundler" in mind here), where "inertia-adapter-solid/dist/types/App" is not recognised at all.

apademide avatar Apr 02 '24 19:04 apademide