refactor Location#286
Conversation
|
@jderochervlk same comment as in #288, what's the motivation here? I think the main goal of our work now should be to have the most common types inside the |
I'm trying to slim down I don't think we'll need to keep the |
|
Makes sense to me from the code and API perspective. Moving Location and reserving the Base for the types most things actually depend on feels like the right call. I do agree with @tsnobip's point, consumers like @rescript/react need to depend on Base alone and stay light. But we can still go with these changes, makes it more composable and lightweight. |
Refactor
Locationto align with simplifyingDOMand reducing module dependencies.Locationis a good example of something that can be isolated and not included inDOMas a base type.WindowandDocumentremain large, but libraries probably won't need them.locationfromDOMandDomTypeslocationtoDocumentLocation.t