sigmacomputing / plugin

MIT License
2 stars 1 forks source link

Add validation and some small cleanup #19

Closed peternandersson closed 2 months ago

peternandersson commented 2 months ago

Adds validation around passing in undefined ids, which can commonly occur when incorrectly accessing part of the plugin config. Left these validations as console.warn since we wouldn't want this to be a breaking change in case people are passing in undefined on first render, then a valid config item on the next.

Also cleans up some comments and types ahead of the next version bump.