darkmodeStore: {
    set: (this: void, value: boolean) => void;
    subscribe: (
        this: void,
        run: Subscriber<boolean>,
        invalidate?: () => void,
    ) => Unsubscriber;
    toggle: () => void;
    update: (this: void, updater: Updater<boolean>) => void;
} = ...

Type declaration

  • set: (this: void, value: boolean) => void
  • subscribe: (this: void, run: Subscriber<boolean>, invalidate?: () => void) => Unsubscriber
  • toggle: () => void
  • update: (this: void, updater: Updater<boolean>) => void