mirror of
https://github.com/ksyasuda/SubMiner.git
synced 2026-03-01 06:22:44 -08:00
9 lines
191 B
TypeScript
9 lines
191 B
TypeScript
import { writableStorageSubject } from './writable-storage-subject';
|
|
|
|
export function writableBooleanSubject() {
|
|
return writableStorageSubject(
|
|
(x) => !!+x,
|
|
(x) => (x ? '1' : '0')
|
|
);
|
|
}
|