UNPKG

1.16 kBTypeScriptView Raw
1import { ICustomizerContext } from '@uifabric/utilities';
2import { ISchemeNames, ITheme } from '../interfaces/index';
3/**
4 * @internal
5 * This function is still in experimental phase in support of Foundation experimental development.
6 * Its API signature and existence are subject to change.
7 *
8 * Modify context to activate the specified scheme or theme. For schemes, look in context (if available) and fall back
9 * to global Customizations. If both scheme and theme are specified, scheme will be looked up in theme. In this case,
10 * scheme must be present in theme arg, otherwise new context will default to theme arg (there is no fallback to
11 * settings to look up scheme.)
12 *
13 * @param context - Context in which to get schemed customizations.
14 * @param scheme - Scheme to get customizations for from theme arg (if supplied) OR from context and global settings.
15 * @param theme - Theme to merge into context.
16 * @returns modified schemed context if scheme is valid and not already applied, unmodified context otherwise.
17 */
18export declare function getThemedContext(context: ICustomizerContext, scheme?: ISchemeNames, theme?: ITheme): ICustomizerContext;