kitbagjs / router

A type safe router for vuejs
https://router.kitbag.dev
MIT License
173 stars 4 forks source link

Use symbols for private members of Resolved #83

Closed pleek91 closed 7 months ago

pleek91 commented 7 months ago

Description

This is what i had in mind for private members of Resolved. This way they're visible all the time but they are unaccessible because we won't export the symbol.

I didn't specifically target the not found rejection. But we could if you think we should. But in general I think using private symbols for private values is a good pattern because then things we don't intend to be used cannot be.