@mikezimm/npmfunctions
Version:
Functions used in my SPFx webparts
32 lines (31 loc) • 1.1 kB
TypeScript
export interface IPreConfigSettings {
[key: string]: string | boolean | any | undefined;
source: string;
location: string;
props: any;
triggered?: boolean;
}
export interface IAllPreConfigSettings {
[key: string]: IPreConfigSettings[];
forced: IPreConfigSettings[];
preset: IPreConfigSettings[];
}
declare type colorClassName = 'green' | 'yellow' | 'red' | 'na';
export interface IConfigurationProp {
[key: string]: string | boolean | colorClassName | any | undefined;
source: string;
location: string;
prop: string;
value: any;
type: 'preset' | 'forced' | 'unk';
status: 'tbd' | 'valid' | 'preset' | 'changed' | 'error' | 'unk';
className: colorClassName;
triggered?: boolean;
}
export interface ISitePreConfigProps {
[key: string]: IConfigurationProp[];
presets: IConfigurationProp[];
forces: IConfigurationProp[];
}
export declare function getThisSitesPreConfigProps(PreConfiguredProps: IAllPreConfigSettings, thisProps: any, serverRelativeUrl: string): ISitePreConfigProps;
export {};