UNPKG

@brontosaurus/db

Version:
6 lines (5 loc) 1.64 kB
import { Preferences } from "../interface/preference"; export declare const getSinglePreference: <N extends "registerInfo" | "prepared" | "mailerTransport" | "mailerSourceResetPassword" | "mailerSourceNotification" | "accountName" | "systemName" | "commandCenterName" | "globalAvatar" | "globalBackgroundImages" | "globalFavicon" | "globalHelpLink" | "globalPrivacyPolicy" | "indexPage" | "entryPage">(name: N) => Promise<Preferences[N] | null>; export declare const addMultiplePreference: <N extends "registerInfo" | "prepared" | "mailerTransport" | "mailerSourceResetPassword" | "mailerSourceNotification" | "accountName" | "systemName" | "commandCenterName" | "globalAvatar" | "globalBackgroundImages" | "globalFavicon" | "globalHelpLink" | "globalPrivacyPolicy" | "indexPage" | "entryPage">(name: N, value: Preferences[N]) => Promise<void>; export declare const getMultiplePreference: <N extends "registerInfo" | "prepared" | "mailerTransport" | "mailerSourceResetPassword" | "mailerSourceNotification" | "accountName" | "systemName" | "commandCenterName" | "globalAvatar" | "globalBackgroundImages" | "globalFavicon" | "globalHelpLink" | "globalPrivacyPolicy" | "indexPage" | "entryPage">(name: N) => Promise<Preferences[N][]>; export declare const setSinglePreference: <N extends "registerInfo" | "prepared" | "mailerTransport" | "mailerSourceResetPassword" | "mailerSourceNotification" | "accountName" | "systemName" | "commandCenterName" | "globalAvatar" | "globalBackgroundImages" | "globalFavicon" | "globalHelpLink" | "globalPrivacyPolicy" | "indexPage" | "entryPage">(name: N, value: Preferences[N]) => Promise<void>;