UNPKG

1.43 kBTypeScriptView Raw
1import { IIconOptions } from '@uifabric/styling';
2declare global {
3 interface Window {
4 /**
5 * The FabricConfig options can be burned on the page prior to script load to provide
6 * alternative defaults at script load time. This helps avoid race conditions by calling
7 * `initializeIcons` too late, or in cases where you can't control the `initializeIcons` call,
8 * such as using the pre-created Fluent bundle.
9 */
10 FabricConfig?: {
11 /**
12 * Controls the base url of the font files. This is useful for scenarios where the fonts
13 * are stored on a private CDN other than the default SharePoint CDN.
14 */
15 fontBaseUrl?: string;
16 /**
17 * Controls the base url of the icon font files. This is useful for scenarios where the icons
18 * are stored on a private CDN other than the default SharePoint CDN. Note that in prior
19 * iterations, `fontBaseUrl` was used to control both font and icon base urls. While you can
20 * still use `fontBaseUrl` to provide a single base url for both, the `iconBaseUrl` will be
21 * used first if available.
22 */
23 iconBaseUrl?: string;
24 };
25 }
26}
27export declare function initializeIcons(baseUrl?: string, options?: IIconOptions): void;
28export { IconNames } from './IconNames';
29import './version';