Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 20s
Build & Deploy / 🧪 QA (push) Failing after 34s
Build & Deploy / 🏗️ Build (push) Has started running
Build & Deploy / 🚀 Deploy (push) Has been cancelled
Build & Deploy / 🧪 Smoke Test (push) Has been cancelled
Build & Deploy / ⚡ Lighthouse (push) Has been cancelled
Build & Deploy / 🔔 Notify (push) Has been cancelled
17 lines
747 B
Plaintext
17 lines
747 B
Plaintext
import React from 'react';
|
|
import type { Preferences } from '../../forms/Form/types.js';
|
|
type PreferencesContext = {
|
|
getPreference: <T = Preferences>(key: string) => Promise<T>;
|
|
/**
|
|
* @param key - a string identifier for the property being set
|
|
* @param value - preference data to store
|
|
* @param merge - when true will combine the existing preference object batch the change into one request for objects, default = false
|
|
*/
|
|
setPreference: <T = Preferences>(key: string, value: T, merge?: boolean) => Promise<void>;
|
|
};
|
|
export declare const PreferencesProvider: React.FC<{
|
|
children?: React.ReactNode;
|
|
}>;
|
|
export declare const usePreferences: () => PreferencesContext;
|
|
export {};
|
|
//# sourceMappingURL=index.d.ts.map |