initial commit

This commit is contained in:
2026-02-09 19:04:19 -08:00
commit 272d92169d
531 changed files with 196294 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
import { writableStorageSubject } from './writable-storage-subject';
function createwritteableObjectSubject<T>(fallback: string) {
return writableStorageSubject(
(x) => JSON.parse(x || fallback) as T,
(x) => JSON.stringify(x)
);
}
export function writeableObjectSubject<T>() {
return createwritteableObjectSubject<T>('{}');
}
export function writeableArraySubject<T>() {
return createwritteableObjectSubject<T[]>('[]');
}