openfga / language

Grammar for the OpenFGA modeling language
https://openfga.dev
Apache License 2.0
17 stars 7 forks source link

refactor(js): move exceptioncollector to be a class #207

Closed ewanharris closed 6 months ago

ewanharris commented 6 months ago

Description

This PR proposed moving the existing exceptionCollector function to be a class, we're already kind of mimicking this by returning an object with the functions attached but by moving to a class it means we can more easily type the collector we pass around and when refactoring we're able to get typing.

References

Review Checklist