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