Interface PreferenceRetrieval<T>
interface PreferenceRetrieval<T> { get<K>(preferenceName,
defaultValue?,
resourceUri?): T[K]; } Methods
get
- get<K>(preferenceName, defaultValue?, resourceUri?): T[K]
Type Parameters
- K extends string | number | symbol
Parameters
- preferenceName: K | {
overrideIdentifier?: string;
preferenceName: K;
} Optional
defaultValue: T[K]Optional
resourceUri: string
Returns T[K]
Generic interface to declare a typesafe get function based on the given configuration type.
Illustration