@mikezimm/fps-core-v7
Version:
Library of reusable core interfaces, types and constants migrated from fps-library-v2
23 lines • 1.31 kB
TypeScript
/**
* 2024-09-07: Migrated from the same folder in fps-library-v2/banner/features/WebPartHistory/...
*/
import { IWebpartHistoryItem2, IWebpartHistory } from './Interface';
export declare function createWebpartHistory(prop: any, newValue: any, user: string): IWebpartHistoryItem2;
export declare function updateCurrentHistorySaved(allHistory: IWebpartHistory, thisInstance: IWebpartHistoryItem2): IWebpartHistory;
export declare function upgradeV1History(allHistory: IWebpartHistory): IWebpartHistory;
export type ITrimThis = 'start' | 'end' | 'none';
/**
* Added 2022-07-25 from FPSPageInfo to simplify re-usability.
* It just has logic to get the trimThis based on the passed in array of strings
* @param webpartHistory
* @param prop
* @param newValue
* @param user
* @param noTrimProps
* @param startTrimProps
* @param trimLength
* @returns
*/
export declare function updateWebpartHistoryV2(webpartHistory: IWebpartHistory, prop: string, newValue: any, user: string, noTrimProps: string[], startTrimProps: string[], trimLength?: number): IWebpartHistory;
export declare function updateWebpartHistory(webpartHistory: IWebpartHistory, prop: string, newValue: any, user: string, trimThis?: ITrimThis, trimLength?: number): IWebpartHistory;
//# sourceMappingURL=Functions.d.ts.map