bluetooth-buzzer/src/stores.ts

7 lines
283 B
TypeScript

import type { BuzzerState } from '$lib/types';
import { writable } from 'svelte/store';
const bluetoothState = writable<'UNAVAILABLE' | 'DISCONNECTED' | 'CONNECTING' | 'CONNECTED'>('DISCONNECTED');
let buzzerState = writable<BuzzerState>({});
export { bluetoothState, buzzerState }