mirror of
https://github.com/ksyasuda/SubMiner.git
synced 2026-03-01 18:22:41 -08:00
initial commit
This commit is contained in:
8
vendor/texthooker-ui/src/stores/transformer/writeable-boolean-subject.ts
vendored
Normal file
8
vendor/texthooker-ui/src/stores/transformer/writeable-boolean-subject.ts
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
import { writableStorageSubject } from './writable-storage-subject';
|
||||
|
||||
export function writableBooleanSubject() {
|
||||
return writableStorageSubject(
|
||||
(x) => !!+x,
|
||||
(x) => (x ? '1' : '0')
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user