dgoemans/spot

Add ability to set the Type of the data as a Generic

Closed this issue · 0 comments

When calling initializeSpot, it would be nice to pass a type argument. This would then prevent having to cast spot.data everywhere.
For example:

const spot = initializeSpot<MyStoreStructure>('/api', true);