powersync-js
powersync-js copied to clipboard
[Feature] Added PowerSyncDatabase options validation
Overview
This adds some very basic checks for invalid options to the PowerSyncDatabase
constructor.
JavaScript users might incorrectly supply required options or fail to supply them at all. This should help those users identify issues.
The warnings here are not detailed. But should be better than cryptic errors which could occur down-the-line if invalid arguments are provided.