@mikezimm/npmfunctions
Version:
Functions used in my SPFx webparts
20 lines (19 loc) • 1.09 kB
TypeScript
import { IPropertyPaneGroup } from '@microsoft/sp-property-pane';
import { IMinBannerUtilityProps } from "../../HelpPanelOnNPM/onNpm/BannerInterface";
export declare const FPSImportPropsGroup: IPropertyPaneGroup;
export declare function updateFpsImportProps(thisProps: IMinBannerUtilityProps, importBlockProps: string[], propertyPath: string, newValue: any, refreshPane: any, restartPane: any, exitPropPaneChanged: any): string;
/**
* @param thisProperties - this.properties of the webpart (to update and verify)
* @param fpsImportProps - string from property pane with import properties
* @param validImports - white list specific properties
* @param blockImports - explicitly block these props (to avoid over-writing ones we don't want changed like scenario )
*/
export declare function importProps(thisProperties: any, fpsImportProps: string, validImports: string[], blockImports: string[]): {
thisProps: any;
importError: boolean;
errMessage: string;
updateCount: number;
blockCount: number;
notAcceptCount: number;
unChanged: number;
};