Type error on streamingMode
oliverrees opened this issue · 1 comments
oliverrees commented
Using the boilerplate code from the bluetooth streaming tutorial streaming mode returns a type error for any input (including the values that are meant to be typed: 'bluetooth-with-wifi-fallback' etc)
import { Neurosity, WebBluetoothTransport } from "@neurosity/sdk";
...
const neurosity = new Neurosity({
autoSelectDevice: true,
bluetoothTransport: new WebBluetoothTransport(),
streamingMode: 'wifi-only'
});
alexcastillo commented
Hey @oliverrees,
Thanks for reporting this issue.
I've published @neurosity/sdk@6.5.5 with an enum you can import when using TypeScript:
import { Neurosity, WebBluetoothTransport, STREAMING_MODE } from "@neurosity/sdk";
const neurosity = new Neurosity({
autoSelectDevice: true,
bluetoothTransport: new WebBluetoothTransport(),
streamingMode: STREAMING_MODE.WIFI_ONLY
});