UNPKG

488 BTypeScriptView Raw
1import { Dictionary, AnyJson } from '@salesforce/ts-types';
2export type Key<P extends ConfigContents> = Extract<keyof P, string>;
3/**
4 * The allowed types stored in a config store.
5 */
6export type ConfigValue = AnyJson;
7/**
8 * The type of entries in a config store defined by the key and value type of {@link ConfigContents}.
9 */
10export type ConfigEntry = [string, ConfigValue];
11/**
12 * The type of content a config stores.
13 */
14export type ConfigContents<T = ConfigValue> = Dictionary<T>;