DevicePreferencesControls
How the contract scripts the preferences. A real adapter implements this by
mocking matchMedia.
This is an interface exported by @mapcairn/core/contracts, checked against version 0.2.0.
Signature
import type { DevicePreferencesControls } from "@mapcairn/core/contracts";
interface DevicePreferencesControls
Methods
set
set(patch: Partial<DevicePreferencesValue>): void;
Changes a preference, as the user or the device would.
patch(Partial<DevicePreferencesValue>)
See also
Source: packages/core/src/contracts/devicePreferences.contract.ts:13