powersync-js icon indicating copy to clipboard operation
powersync-js copied to clipboard

[Feature] Added PowerSyncDatabase options validation

Open stevensJourney opened this issue 6 months ago • 1 comments

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.

stevensJourney avatar Aug 19 '24 07:08 stevensJourney