@mikezimm/npmfunctions
Version:
Functions used in my SPFx webparts
42 lines (30 loc) • 1.03 kB
text/typescript
export interface IUrlPairs {
[key: string]: string ;
url: string;
embed: string;
}
export interface IAnyContent extends Partial<any> {
[key: string]: string | string[] | IUrlPairs[] | number;
FileLeafRef: string;
FileRef: string;
linkUrl: string;
linkAlt: string; //For alt-clicking
linkText: string;
CanvasContent1: string;
images: IUrlPairs[]; //Added this for possible expanding alt-click on item to go to Embed link instead of actual link
links: IUrlPairs[]; //Added this for possible expanding alt-click on item to go to Embed link instead of actual link
meta: string[];
modifiedMS: number;
createdMS: number;
}
export interface IRelatedItemsState {
[key: string]: string | boolean | IAnyContent[];
items: IAnyContent[];
errMess: string;
fetched: boolean;
linkFilter: string; //Filter links or images by text
textFilter: string;
filteredItems: IAnyContent[];
canvasLinksExpanded: boolean;
canvasImagesExpanded: boolean;
}